public void NewGame(UInt16 index, GameLogic game) { NewGameQueue.Enqueue(new InOutGameElement { Index = index, GameObj = game }); }
public static void CreateInstance(GameStateServer gameState) { Instance = new GameLogic(gameState); }
public void SendIntoGame(string playerName) { Player = new Player(Id, playerName); _game = new Thread(() => GameLogic.PlayGame(this)); _game.Start(); }