Пример #1
0
 public void NewGame(UInt16 index, GameLogic game)
 {
     NewGameQueue.Enqueue(new InOutGameElement {
         Index = index, GameObj = game
     });
 }
Пример #2
0
 public static void CreateInstance(GameStateServer gameState)
 {
     Instance = new GameLogic(gameState);
 }
Пример #3
0
 public void SendIntoGame(string playerName)
 {
     Player = new Player(Id, playerName);
     _game  = new Thread(() => GameLogic.PlayGame(this));
     _game.Start();
 }