GameFramework.EntityController.GetCampId C# (CSharp) Method

GetCampId() private method

private GetCampId ( EntityInfo obj ) : int
obj EntityInfo
return int
        internal int GetCampId(EntityInfo obj)
        {
            int campId = 0;
            if (null != obj) {
                campId = obj.GetCampId();
            }
            return campId;
        }

Same methods

EntityController::GetCampId ( UnityEngine obj ) : int
EntityController::GetCampId ( int objId ) : int

Usage Example

Example #1
0
 static public int GetCampId(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.GameObject)))
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             UnityEngine.GameObject         a1;
             checkType(l, 2, out a1);
             var ret = self.GetCampId(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int)))
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             var ret = self.GetCampId(a1);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }