private void JoinRoom() { //request used to create a room QuickJoinGameRequest qjr = new QuickJoinGameRequest(); qjr.GameType = LobbyConstants.PLUGIN_NAME; qjr.ZoneName = LobbyConstants.ZONE_NAME; qjr.Hidden = false; qjr.Locked = false; qjr.CreateOnly = false; EsObject initOb = new EsObject(); qjr.GameDetails = initOb; _es.Engine.Send(qjr); waitingMessage = "QuickJoinGameRequest sent for lobby"; Debug.Log("QuickJoinGameRequest sent for ReversiLobby"); }
private QuickJoinGameRequest getBasicQuickJoinRequest() { QuickJoinGameRequest qjr = new QuickJoinGameRequest(); qjr.GameType = GameConstants.PLUGIN_NAME; qjr.ZoneName = GameConstants.ZONE_NAME; qjr.Hidden = false; qjr.Locked = false; qjr.CreateOnly = false; EsObject initOb = new EsObject(); initOb.setString(GameConstants.PLAYER_NAME, me); initOb.setBoolean(GameConstants.AI_OPPONENT, true); qjr.GameDetails = initOb; return qjr; }