コード例 #1
0
ファイル: FSEGame.cs プロジェクト: mbg/FSEGame
 private void DialogueEnd(DialogueManager sender)
 {
     this.state = GameState.Exploring;
 }
コード例 #2
0
ファイル: FSEGame.cs プロジェクト: mbg/FSEGame
 private void DialogueStart(DialogueManager sender)
 {
     this.state = GameState.Cutscene;
 }
コード例 #3
0
ファイル: GameBase.cs プロジェクト: mbg/FSEGame
        /// <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";
        }