Exemple #1
0
 public void EnqueueRowsItem(GameTemplatePayload gameTemplate)
 {
     if (gameTemplate != null)
     {
         EMapSize mapSize = EMapSize.GIANT;//(EMapSize)System.Enum.Parse(typeof(EMapSize), gameTemplate.mapSize);
         gameTable.EnqueueRowItem(gameTemplate.gameName, mapSize, gameTemplate.currentPlayers, gameTemplate.maxPlayers, true);
     }
 }
Exemple #2
0
        public void OnSearchGame(string message)
        {
            if (message != null)
            {
                GameTemplatePayload gameTemplatePayload = JsonUtility.FromJson <GameTemplatePayload>(message);
                playersTemplatePayload = JsonUtility.FromJson <PlayerListTemplatePayload>(message);

                GameSetup.mapSeed     = gameTemplatePayload.mapSeed;
                GameSetup.currentGame = gameTemplatePayload.gameName;
                GameSetup.mapSize     = EMapSize.GIANT;//(EMapSize)Enum.Parse(typeof(EMapSize), gameTemplatePayload.mapSize, true);

                tasks.Enqueue(WaitForOpponentsTask);
            }
        }
Exemple #3
0
 public void CreateNewGame(GameTemplatePayload gameTemplate)
 {
 }