protected override void LoadContent() { this.spriteBatch = new SpriteBatch(GraphicsDevice); this.stats = new stats(); this.map = new map(this, Vector2.Zero, mapSize); this.map.setStats(this.stats); this.defaultFont = Content.Load <SpriteFont>("defaultFont"); //Load icons manually this.icons.Add("AirbusA380", Content.Load <Texture2D>("AirbusA380")); this.icons.Add("Boeing737", Content.Load <Texture2D>("Boeing737")); this.icons.Add("AirbusA330", Content.Load <Texture2D>("AirbusA330")); this.icons.Add("Embraer195", Content.Load <Texture2D>("Embraer195")); this.icons.Add("Learjet85", Content.Load <Texture2D>("Learjet85")); this.frameCounter = new FrameCounter(); this.notificationsManager = new notificationsManager(this); this.lineTexture = new Texture2D(GraphicsDevice, 1, 1); this.lineTexture.SetData(new Color[] { Color.White }); this.airplanePresets = getAirplanePresets(); }
public void setStats(stats stats) { this.stats = stats; }