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); } }
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); } }
public void CreateNewGame(GameTemplatePayload gameTemplate) { }