public static int get_SuccessfulDefenseNums(IntPtr l) { int result; try { ArenaDefenseInfo arenaDefenseInfo = (ArenaDefenseInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, arenaDefenseInfo.SuccessfulDefenseNums); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { ArenaDefenseInfo o = new ArenaDefenseInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddDefenseNums(IntPtr l) { int result; try { ArenaDefenseInfo arenaDefenseInfo = (ArenaDefenseInfo)LuaObject.checkSelf(l); bool successfulDefense; LuaObject.checkType(l, 2, out successfulDefense); arenaDefenseInfo.AddDefenseNums(successfulDefense); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_TotalDefenseNums(IntPtr l) { int result; try { ArenaDefenseInfo arenaDefenseInfo = (ArenaDefenseInfo)LuaObject.checkSelf(l); int totalDefenseNums; LuaObject.checkType(l, 2, out totalDefenseNums); arenaDefenseInfo.TotalDefenseNums = totalDefenseNums; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }