GameFramework.SceneContextInfo.GetEntityById C# (CSharp) Method

GetEntityById() public method

public GetEntityById ( int id ) : EntityInfo
id int
return EntityInfo
        public EntityInfo GetEntityById(int id)
        {
            EntityInfo info = null;
            if (null != m_EntityMgr) {
                info = m_EntityMgr.GetEntityInfo(id);
            }
            return info;
        }

Usage Example

示例#1
0
 static public int GetEntityById(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         var ret = self.GetEntityById(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }