public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Regenerate")) { SimulationInstance simulationInstance = (SimulationInstance)target; simulationInstance.RebuildSimulation(); } }
public void LaunchTestLevel() { SimulationInstance = MainController.Instance.ModuleCreator.Create <SimulationInstance>("SimulationInstance"); SimulationInstance.Player = playerGlobal; SimulationInstance.LaunchInstance(); SimulationInstance.LoadLevel(LevelLoader.SetupAndReturnChoosenLevel(LevelCollection.testLevel)); SimulationInstance.GameplayController.StartStage(); SimulationLoaded = true; inPlaymode = true; }
public static void StartNewSimulation(HexMap hexMap) { CurrentSimulation = new SimulationInstance(hexMap); GraphManager.Instance.ResetGraph(); // Calculate day 0 data. CalculateNewTick(null, true); simulationInstances.Add(CurrentSimulation); }
public DevCommandData(CommandData normal, SimulationInstance sender = null) : base(normal) { this.sender = sender; }