AIsOfCatan.GUIControl.Initialize C# (CSharp) Метод

Initialize() защищенный Метод

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
Результат void
        protected override void Initialize()
        {
            /*
            board = new Board(0);
            board = board.PlaceRoad(16, 22, 1);
            board = board.PlaceRoad(23, 24, 2);
            board = board.PlaceRoad(28, 35, 3);
            board = board.PlacePiece(8, 14, 15, new Board.Piece(Token.Settlement, 2));
            board = board.PlacePiece(28, 29, 35, new Board.Piece(Token.City, 3));
            board = board.MoveRobber(23);
            logList = new List<LogEvent>();
            logList.Add(new BuyDevLogEvent(2));
            logList.Add(new RollLogEvent(1, 2));
            state = new GameState(board, null, null, null, 0, logList);
            */
            SCALE = 0.5f;

            base.Initialize();

            graphics.PreferredBackBufferWidth = 1280;
            graphics.PreferredBackBufferHeight = 720;
            graphics.ApplyChanges();
        }