public static int get_BattleCollections(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionCooperateBattle.BattleCollections); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ClearInitedData(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); dataSectionCooperateBattle.ClearInitedData(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { DataSectionCooperateBattle o = new DataSectionCooperateBattle(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SerializeToClient(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); object o = dataSectionCooperateBattle.SerializeToClient(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int UpdateInstantiatedData(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); DSCooperateBattleNtf ds; LuaObject.checkType <DSCooperateBattleNtf>(l, 2, out ds); dataSectionCooperateBattle.UpdateInstantiatedData(ds); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_BattleCollections(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); CooperateBattleCollections battleCollections; LuaObject.checkType <CooperateBattleCollections>(l, 2, out battleCollections); dataSectionCooperateBattle.BattleCollections = battleCollections; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SetChallengedNums(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); int challengedNums; LuaObject.checkType(l, 2, out challengedNums); dataSectionCooperateBattle.SetChallengedNums(challengedNums); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetCooperateBattle(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); int battleID; LuaObject.checkType(l, 2, out battleID); CooperateBattle cooperateBattle = dataSectionCooperateBattle.GetCooperateBattle(battleID); LuaObject.pushValue(l, true); LuaObject.pushValue(l, cooperateBattle); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetFirstCooperateBattleLevel(IntPtr l) { int result; try { DataSectionCooperateBattle dataSectionCooperateBattle = (DataSectionCooperateBattle)LuaObject.checkSelf(l); int levelId; LuaObject.checkType(l, 2, out levelId); bool mustBeAvailable; LuaObject.checkType(l, 3, out mustBeAvailable); CooperateBattleLevel firstCooperateBattleLevel = dataSectionCooperateBattle.GetFirstCooperateBattleLevel(levelId, mustBeAvailable); LuaObject.pushValue(l, true); LuaObject.pushValue(l, firstCooperateBattleLevel); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }