Inheritance: Microsoft.Xna.Framework.GameComponent
Beispiel #1
0
        public AzmythGame()
        {
            m_graphics = new GraphicsDeviceManager(this);

            m_stateManager = new StateMachine<GameStates>();
            m_stateManager.SetState(GameStates.Loading);

            m_playerManager = new PlayerManager(this);
            m_terrainManager = new TerrainManager(this);

            Components.Add(m_playerManager);
            Components.Add(m_terrainManager);

            Content.RootDirectory = "Content";
        }