public static int get_RandomEventTimeList(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSecionRandomEvent.RandomEventTimeList); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ClearRandomInfo(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); dataSecionRandomEvent.ClearRandomInfo(); 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 { DataSecionRandomEvent o = new DataSecionRandomEvent(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetDefiniteGroupRandomEventGroups(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); Dictionary <int, RandomEventGroup> definiteGroupRandomEventGroups = dataSecionRandomEvent.GetDefiniteGroupRandomEventGroups(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, definiteGroupRandomEventGroups); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsCompletedRandomEventGenerate(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); bool b = dataSecionRandomEvent.IsCompletedRandomEventGenerate(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddDefiniteGroupRandomEventGroup(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); RandomEventGroup newGroup; LuaObject.checkType <RandomEventGroup>(l, 2, out newGroup); dataSecionRandomEvent.AddDefiniteGroupRandomEventGroup(newGroup); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddRandomEventCount(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); int count; LuaObject.checkType(l, 2, out count); dataSecionRandomEvent.AddRandomEventCount(count); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_RandomEventTimeList(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); List <int> randomEventTimeList; LuaObject.checkType <List <int> >(l, 2, out randomEventTimeList); dataSecionRandomEvent.RandomEventTimeList = randomEventTimeList; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RemoveRandomEventTime(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); int time; LuaObject.checkType(l, 2, out time); dataSecionRandomEvent.RemoveRandomEventTime(time); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_DefiniteLevelZone(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); RandomEventLevelZone definiteLevelZone; LuaObject.checkType <RandomEventLevelZone>(l, 2, out definiteLevelZone); dataSecionRandomEvent.DefiniteLevelZone = definiteLevelZone; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int InitRandomLevelZone(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); List <RandomEventLevelZone> zones; LuaObject.checkType <List <RandomEventLevelZone> >(l, 2, out zones); dataSecionRandomEvent.InitRandomLevelZone(zones); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_RandomLevelZone(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); Dictionary <int, RandomEventLevelZone> randomLevelZone; LuaObject.checkType <Dictionary <int, RandomEventLevelZone> >(l, 2, out randomLevelZone); dataSecionRandomEvent.RandomLevelZone = randomLevelZone; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_NextRandomEventFlushTime(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); DateTime nextRandomEventFlushTime; LuaObject.checkValueType <DateTime>(l, 2, out nextRandomEventFlushTime); dataSecionRandomEvent.NextRandomEventFlushTime = nextRandomEventFlushTime; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_GenerateRandomEventTotalCount(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); int generateRandomEventTotalCount; LuaObject.checkType(l, 2, out generateRandomEventTotalCount); dataSecionRandomEvent.GenerateRandomEventTotalCount = generateRandomEventTotalCount; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int DefiniteGroupGenerateRandomEvent(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); int groupId; LuaObject.checkType(l, 2, out groupId); dataSecionRandomEvent.DefiniteGroupGenerateRandomEvent(groupId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetRandomGroupLevelZoneEventGroups(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); int levelZoneId; LuaObject.checkType(l, 2, out levelZoneId); Dictionary <int, RandomEventGroup> randomGroupLevelZoneEventGroups = dataSecionRandomEvent.GetRandomGroupLevelZoneEventGroups(levelZoneId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, randomGroupLevelZoneEventGroups); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddRandomEventLevelZone(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); int index; LuaObject.checkType(l, 2, out index); RandomEventLevelZone zone; LuaObject.checkType <RandomEventLevelZone>(l, 3, out zone); dataSecionRandomEvent.AddRandomEventLevelZone(index, zone); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RandomGroupGenerateRandomEvent(IntPtr l) { int result; try { DataSecionRandomEvent dataSecionRandomEvent = (DataSecionRandomEvent)LuaObject.checkSelf(l); int levelZoneId; LuaObject.checkType(l, 2, out levelZoneId); int groupId; LuaObject.checkType(l, 3, out groupId); int maxCount; LuaObject.checkType(l, 4, out maxCount); dataSecionRandomEvent.RandomGroupGenerateRandomEvent(levelZoneId, groupId, maxCount); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }