Exemplo n.º 1
0
 private void DialogueEnd(DialogueManager sender)
 {
     this.state = GameState.Exploring;
 }
Exemplo n.º 2
0
 private void DialogueStart(DialogueManager sender)
 {
     this.state = GameState.Cutscene;
 }
Exemplo n.º 3
0
        /// <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";
        }