Example #1
0
        public GodGameOffline(WorldSimulationService worldSimulationService,
                              Model.World world,
                              WorldPersisterService persisterService,
                              UserInputProcessingService userInputProcessingService,
                              UIRenderingService uiRenderingService,
                              DeveloperConsoleService developerConsoleService,
                              ClearGameStateChangesService clearStateChangesSimulator,
                              WorldRenderingSimulator worldRenderingSimulator,
                              WorldRenderingService simpleWorldRenderer
                              )
        {
            World = world;
            this.WorldSimulationService     = worldSimulationService;
            this.clearStateChangesSimulator = clearStateChangesSimulator;



            this.userInputProcessingService = userInputProcessingService;
            this.uiRenderingService         = uiRenderingService;
            this.developerConsoleService    = developerConsoleService;
            this.clearStateChangesSimulator = clearStateChangesSimulator;
            this.worldRenderingSimulator    = worldRenderingSimulator;
            this.simpleWorldRenderer        = simpleWorldRenderer;



            persisterService.Load(world, TWDir.GameData.GetChild("Saves/GodGame").CreateFile("auto.xml"));
        }
 public GodGameClient(UserInputProcessingService userInputProcessingService,
                      UIRenderingService uiRenderingService,
                      DeveloperConsoleService developerConsoleService,
                      ClearGameStateChangesService clearStateChangesSimulator,
                      WorldRenderingSimulator worldRenderingSimulator,
                      WorldRenderingService simpleWorldRenderer,
                      INetworkConnectorClient networkConnectorClient,
                      GameStateDeltaPacketBuilder gameStateDeltaPacketBuilder,
                      LocalPlayerService localPlayerService,
                      UserInputService userInputService)
 {
     this.userInputProcessingService  = userInputProcessingService;
     this.uiRenderingService          = uiRenderingService;
     this.developerConsoleService     = developerConsoleService;
     this.clearStateChangesSimulator  = clearStateChangesSimulator;
     this.worldRenderingSimulator     = worldRenderingSimulator;
     this.simpleWorldRenderer         = simpleWorldRenderer;
     this.networkConnectorClient      = networkConnectorClient;
     this.gameStateDeltaPacketBuilder = gameStateDeltaPacketBuilder;
     this.localPlayerService          = localPlayerService;
     this.userInputService            = userInputService;
 }