public static int get_CurrentWaypointInfo(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionLevel.CurrentWaypointInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { DataSectionLevel o = new DataSectionLevel(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ClearInitedData(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); dataSectionLevel.ClearInitedData(); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_LastFinishedScenarioInfo(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionLevel.LastFinishedScenarioInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_RandomEvents(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, dataSectionLevel.RandomEvents); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int IsExistRandomEvent(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); bool b = dataSectionLevel.IsExistRandomEvent(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, b); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SerializeToClient(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); object o = dataSectionLevel.SerializeToClient(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetArrivedWayPoints(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); List <int> arrivedWayPoints = dataSectionLevel.GetArrivedWayPoints(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, arrivedWayPoints); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_CanMoveWayPointIds(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); Dictionary <int, WayPointStatus> canMoveWayPointIds; LuaObject.checkType <Dictionary <int, WayPointStatus> >(l, 2, out canMoveWayPointIds); dataSectionLevel.CanMoveWayPointIds = canMoveWayPointIds; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int SetScenario(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); int scenario; LuaObject.checkType(l, 2, out scenario); dataSectionLevel.SetScenario(scenario); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_LastFinishedScenarioId(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); int lastFinishedScenarioId; LuaObject.checkType(l, 2, out lastFinishedScenarioId); dataSectionLevel.LastFinishedScenarioId = lastFinishedScenarioId; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_CurrentWayPointId(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); int currentWayPointId; LuaObject.checkType(l, 2, out currentWayPointId); dataSectionLevel.CurrentWayPointId = currentWayPointId; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_RandomEvents(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); List <RandomEvent> randomEvents; LuaObject.checkType <List <RandomEvent> >(l, 2, out randomEvents); dataSectionLevel.RandomEvents = randomEvents; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int RemoveRandomEvent(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); RandomEvent randomEvent; LuaObject.checkType <RandomEvent>(l, 2, out randomEvent); dataSectionLevel.RemoveRandomEvent(randomEvent); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddArrivedWayPoint(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); int wayPointId; LuaObject.checkType(l, 2, out wayPointId); dataSectionLevel.AddArrivedWayPoint(wayPointId); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetRandomEvent(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); int wayPointId; LuaObject.checkType(l, 2, out wayPointId); RandomEvent randomEvent = dataSectionLevel.GetRandomEvent(wayPointId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, randomEvent); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddDeadLives(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); RandomEvent randomEvent; LuaObject.checkType <RandomEvent>(l, 2, out randomEvent); int deadLives; LuaObject.checkType(l, 3, out deadLives); dataSectionLevel.AddDeadLives(randomEvent, deadLives); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int AddCanMoveWayPointId(IntPtr l) { int result; try { DataSectionLevel dataSectionLevel = (DataSectionLevel)LuaObject.checkSelf(l); int wayPointId; LuaObject.checkType(l, 2, out wayPointId); WayPointStatus eventStatus; LuaObject.checkEnum <WayPointStatus>(l, 3, out eventStatus); dataSectionLevel.AddCanMoveWayPointId(wayPointId, eventStatus); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }