public WorldProxy(WorldManager manager) { _worldManager = manager; World = _worldManager.World; }
public EntityFactory(SpriteFactory spriteFactory, WorldManager worldManager) { //Sprite factory is using for creating entities' own sprites _spriteFactory = spriteFactory; _worldProxy = new WorldProxy(worldManager); }
//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()); }