Example #1
0
        public GamePlayView(Game game, int? seed, GameModeChoice gamePlayChoice)
            : base(game, GameState.Gameplay)
        {
            game.GetService<ServerClient>().GamePlay = this;
            int usedSeed = seed.HasValue ? seed.Value : 0;
            UniversalRandom.ResetInstance(usedSeed);
            gameModeChoice = gamePlayChoice;

            content = new ContentManager(Game.Services, "Content");

            UpdateOrder = -1;
            DrawOrder = -1;
        }