Пример #1
0
 public static void ServerInitialize(ControllerFocusObject obj, int numberOfPlayers)
 {
     for (int i = 0; i <= numberOfPlayers; i++)
     {
         obj.focusList.Value.Add(null);
     }
 }
 public static void ServerInitialize(ControllerFocusObject obj, int numberOfPlayers)
 {
     for (int i = 0; i <= numberOfPlayers; i++)
     {
         obj.focusList.Value.Add(null);
     }
 }
        public ServerLogic(ServerGame game, Lobby lobby, Vector2 worldSize)
        {
            ControllerFocusObject controllerFocusObject = new ControllerFocusObject(game);
            ControllerFocusObject.ServerInitialize(controllerFocusObject, lobby.Clients.Count);
            game.GameObjectCollection.Add(controllerFocusObject);

            for (int j = 0; j < 4; j++)
            {
                Tower.TowerFactory(game);
            }
        }