protected override void Initialize() { AppState = AppState.Running; Random = new Random(); graphics.PreferredBackBufferWidth = ScreenWidth; graphics.PreferredBackBufferHeight = ScreenHeight; graphics.ApplyChanges(); IsMouseVisible = true; GameKey = Guid.NewGuid().ToString(); _sessionStorageProvider = new SessionStorageProvider(); _sessionStorageProvider.CreateNewSession(GameKey); _serviceBus.AddMessage("Towerdefence is " + AppState.ToString()); base.Initialize(); }
public State(TowerDefence game, ContentManager content, SessionStorageProvider sessionStorageProvider) { _game = game; _content = content; _sessionStorageProvider = sessionStorageProvider; }
public MenuState(TowerDefence game, ContentManager content, SessionStorageProvider sessionStorageProvider) : base(game, content, sessionStorageProvider) { }