public override void OnInspectorGUI()
 {
     base.OnInspectorGUI();
     if (GUILayout.Button("Regenerate"))
     {
         SimulationInstance simulationInstance = (SimulationInstance)target;
         simulationInstance.RebuildSimulation();
     }
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
        public static void StartNewSimulation(HexMap hexMap)
        {
            CurrentSimulation = new SimulationInstance(hexMap);

            GraphManager.Instance.ResetGraph();

            // Calculate day 0 data.
            CalculateNewTick(null, true);

            simulationInstances.Add(CurrentSimulation);
        }
Beispiel #4
0
 public DevCommandData(CommandData normal, SimulationInstance sender = null) : base(normal)
 {
     this.sender = sender;
 }