public FrizzyAdventureGame(BaseServiceLocator serviceLocator) { _serviceLocator = serviceLocator; _graphicsDeviceManager = new GraphicsDeviceManager(this); Content.RootDirectory = ResourceConstants.ContentDirectory; this.IsFixedTimeStep = true; this.TargetElapsedTime = TimeSpan.FromSeconds(1d / 60d); this.IsMouseVisible = DefaultWindowConstants.DefaultMouseVisibility; _graphicsDeviceManager.PreferredBackBufferHeight = GameConfiguration.WindowHeight; _graphicsDeviceManager.PreferredBackBufferWidth = GameConfiguration.WindowWidth; this.Window.Title = DefaultWindowConstants.WindowTitle; this.Window.Position = new Point(GameConfiguration.WindowPositionX, GameConfiguration.WindowPositionY); }
public ResourceManager(BaseServiceLocator serviceLocator, ContentManager contentManager) { _contentManager = contentManager; _serviceLocator = serviceLocator; }
public ConfigurationManager(BaseServiceLocator serviceLocator) { _serviceLocator = serviceLocator; }
public ControllerManager(BaseServiceLocator serviceLocator, KeyboardControllerMapping keyboardControllerMapping) { _keyboardControllerMapping = keyboardControllerMapping; _serviceLocator = serviceLocator; }
public MapManager(BaseServiceLocator serviceLocator) { _serviceLocator = serviceLocator; }
public RendererManager(BaseServiceLocator serviceLocator, GraphicsDeviceManager graphicsDeviceManager, ResourceManager resourceManager) { _graphicsDeviceManager = graphicsDeviceManager; _resourceManager = resourceManager; _serviceLocator = serviceLocator; }
public GameStateManager(BaseServiceLocator serviceLocator) { _serviceLocator = serviceLocator; }