コード例 #1
0
 public SimCoreServer()
 {
     ServerOptions.ReadFile();
     WriteClientAppConfig();
     simEngine.Initialize(ServerOptions.SimulationModelPath, ServerOptions.PortNumber);
     simEngine.StartSimCore();
     simEngine.StartViewManager();
     eventClient = new SimulationEventDistributorClient();
     simEngine.simCore.distributor.RegisterClient(ref eventClient);
     eventClient.Subscribe("PauseScenarioRequest");
     eventClient.Subscribe("ResumeScenarioRequest");
     eventClient.Subscribe("LoadScenarioRequest");
     eventClient.Subscribe("StopScenarioRequest");
     eventClient.Subscribe("SimCoreReady");
     eventClient.Subscribe("ForkReplayStarted");
     eventClient.Subscribe("ForkReplayFinished");
     eventClient.Subscribe("GameSpeedRequest"); //AD: UN-Removed for now
 }