コード例 #1
0
ファイル: WorldProxy.cs プロジェクト: RuCaptain/Neurolution
 public WorldProxy(WorldManager manager)
 {
     _worldManager = manager;
     World = _worldManager.World;
 }
コード例 #2
0
 public EntityFactory(SpriteFactory spriteFactory, WorldManager worldManager)
 {
     //Sprite factory is using for creating entities' own sprites
     _spriteFactory = spriteFactory;
     _worldProxy = new WorldProxy(worldManager);
 }
コード例 #3
0
ファイル: Game.cs プロジェクト: RuCaptain/Neurolution
        //Classes below called from XNA base classes.
        //It was made for logical isolation of the game functions from framework methods
        protected void GameInitialize()
        {
            //Loading configuration from file...
            var config = new Configuration(GameSettings.ConfigurationFile);

            //And writing it to static class GameSettings
            GameSettings.Load(config);

            //Initizating managers
            Managers.Add(ScreenManager = new ScreenManager());
            Managers.Add(ControlsManager = new ControlsManager());
            Managers.Add(GraphicsManager = new GraphicsManager(Graphics, GraphicsDevice, Window));
            Managers.Add(MenuManager = new MenuManager());
            Managers.Add(WorldManager = new WorldManager());
        }