public void BuildGameComponents(int mapSeed) { this.camera = new Camera(this, new Vector3(0, 0, 100), new Vector3(1, 0, 0), new Vector3(0, 1, 0), new Vector3(0, 0, 0)); this.Services.AddService(typeof(ICameraService), this.camera); Console.WriteLine(" {0} ", mapSeed); this.gameMap = new Map(this, new Vector3(0, 0, 0), mapSeed); this.Services.AddService(typeof(Map), this.gameMap); this.path = new Path(this); this.Services.AddService(typeof(Path), this.path); this.gamePlayer = new Player(this); this.Services.AddService(typeof(Player), this.gamePlayer); this.fps = new FPS(this); this.mainMenu = new MainMenu(this); this.Components.Add(this.camera); this.Components.Add(this.gameMap); this.Components.Add(mainMenu); this.Components.Add(fps); this.Components.Add(this.path); this.Components.Add(this.gamePlayer); }