private void DialogueEnd(DialogueManager sender) { this.state = GameState.Exploring; }
private void DialogueStart(DialogueManager sender) { this.state = GameState.Cutscene; }
/// <summary> /// Initialises the game. /// </summary> protected GameBase() { GameBase.singleton = this; this.uiElements = new UIElementCollection(); this.fpsCounter = new FPSCounter(); this.persistentStorage = new PersistentStorage(); // :: Initialise Lua and register the Engine's functions. this.luaState = new Lua(); this.RegisterClass(this); // :: Initialise the graphics device manager and register some events. this.graphics = new GraphicsDeviceManager(this); this.graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(PrepareGraphicsSettings); this.dialogueManager = new DialogueManager(); this.Content.RootDirectory = "FSEGame"; }