/// <summary>
 /// Initializes a new instance of the <see cref="ExtendedContentManager" /> class.
 /// </summary>
 /// <param name="game">The game that owns this instance.</param>
 public ExtendedContentManager(BaseGame game)
     : base(game.Services)
 {
     this.game = game;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ExtendedContentManager" /> class.
 /// </summary>
 /// <param name="game">The game that owns this instance.</param>
 /// <param name="rootDirectory">The root directory to search for content.</param>
 public ExtendedContentManager(BaseGame game, string rootDirectory)
     : base(game.Services, rootDirectory)
 {
     this.game = game;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="World"/> class with the defaults.
 /// Defaults: No gravity, 64 pixels units per world unit.
 /// </summary>
 /// <param name="parentGame">The Game in which the instance lives.</param>
 /// <param name="bounds">The world's bounds.</param>
 internal World(BaseGame parentGame, RectangleF bounds)
     : this(parentGame, bounds, 1 / 64.0f, Vector2.Zero)
 {
 }