public GameMasterSettings ToBase()
 {
     return(new GameMasterSettings()
     {
         GameDefinition = GameDefinition.ToBase(),
         ActionCosts = ActionCosts.ToBase(),
     });
 }
Example #2
0
 public MessagingHandler(GameConfiguration gameConfiguration, ICommunicationClient communicationCommunicationClient, Action hostNewGame, IGameMasterMessageFactory gameMasterMessageFactory)
 {
     _actionCosts = gameConfiguration.ActionCosts;
     _hostNewGame = hostNewGame;
     _gameMasterMessageFactory = gameMasterMessageFactory;
     CommunicationClient       = communicationCommunicationClient;
     new Thread(() => CommunicationClient.Connect(HandleConnectionError, HandleMessagesFromClient)).Start();
 }