Example #1
0
 public static bool JoinLobby(TypedLobby typedLobby)
 {
     if (connected && Server == ServerConnection.MasterServer)
     {
         if (typedLobby == null)
         {
             typedLobby = TypedLobby.Default;
         }
         bool flag = networkingPeer.OpJoinLobby(typedLobby);
         if (flag)
         {
             networkingPeer.lobby = typedLobby;
         }
         return(flag);
     }
     return(false);
 }
Example #2
0
    public static bool JoinLobby(TypedLobby typedLobby)
    {
        bool flag;

        if (!connected || (Server != ServerConnection.MasterServer))
        {
            return(false);
        }
        if (typedLobby == null)
        {
            typedLobby = TypedLobby.Default;
        }
        if (flag = networkingPeer.OpJoinLobby(typedLobby))
        {
            networkingPeer.lobby = typedLobby;
        }
        return(flag);
    }