C# Class UnityEngine.Networking.NetworkLobbyManager

Inheritance: NetworkManager
显示文件 Open project: randomize/VimConfig Class Usage Examples

Public Properties

Property Type Description
lobbySlots UnityEngine.Networking.NetworkLobbyPlayer[]

Public Methods

Method Description
CheckReadyToBegin ( ) : void
OnClientConnect ( NetworkConnection conn ) : void
OnClientDisconnect ( NetworkConnection conn ) : void
OnClientSceneChanged ( NetworkConnection conn ) : void
OnLobbyClientAddPlayerFailed ( ) : void
OnLobbyClientConnect ( NetworkConnection conn ) : void
OnLobbyClientDisconnect ( NetworkConnection conn ) : void
OnLobbyClientEnter ( ) : void
OnLobbyClientExit ( ) : void
OnLobbyClientSceneChanged ( NetworkConnection conn ) : void
OnLobbyServerConnect ( NetworkConnection conn ) : void
OnLobbyServerCreateGamePlayer ( NetworkConnection conn, short playerControllerId ) : GameObject
OnLobbyServerCreateLobbyPlayer ( NetworkConnection conn, short playerControllerId ) : GameObject
OnLobbyServerDisconnect ( NetworkConnection conn ) : void
OnLobbyServerPlayerRemoved ( NetworkConnection conn, short playerControllerId ) : void
OnLobbyServerPlayersReady ( ) : void
OnLobbyServerSceneChanged ( string sceneName ) : void
OnLobbyServerSceneLoadedForPlayer ( GameObject lobbyPlayer, GameObject gamePlayer ) : bool
OnLobbyStartClient ( NetworkClient lobbyClient ) : void
OnLobbyStartHost ( ) : void
OnLobbyStartServer ( ) : void
OnLobbyStopClient ( ) : void
OnLobbyStopHost ( ) : void
OnServerAddPlayer ( NetworkConnection conn, short playerControllerId ) : void
OnServerConnect ( NetworkConnection conn ) : void
OnServerDisconnect ( NetworkConnection conn ) : void
OnServerRemovePlayer ( NetworkConnection conn, PlayerController player ) : void
OnServerSceneChanged ( string sceneName ) : void
OnStartClient ( NetworkClient lobbyClient ) : void
OnStartHost ( ) : void
OnStartServer ( ) : void
OnStopClient ( ) : void
OnStopHost ( ) : void
SendReturnToLobby ( ) : bool
ServerChangeScene ( string sceneName ) : void
ServerReturnToLobby ( ) : void
TryToAddPlayer ( ) : void

Private Methods

Method Description
CallOnClientEnterLobby ( ) : void
CallOnClientExitLobby ( ) : void
CheckConnectionIsReadyToBegin ( NetworkConnection conn ) : bool
FindSlot ( ) : byte
OnClientAddPlayerFailedMessage ( NetworkMessage netMsg ) : void
OnClientReadyToBegin ( NetworkMessage netMsg ) : void
OnGUI ( ) : void
OnServerReadyToBeginMessage ( NetworkMessage netMsg ) : void
OnServerReturnToLobbyMessage ( NetworkMessage netMsg ) : void
OnServerSceneLoadedMessage ( NetworkMessage netMsg ) : void
OnValidate ( ) : void
SceneLoadedForPlayer ( NetworkConnection conn, GameObject lobbyPlayerGameObject ) : void

Method Details

CheckReadyToBegin() public method

public CheckReadyToBegin ( ) : void
return void

OnClientConnect() public method

public OnClientConnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnClientDisconnect() public method

public OnClientDisconnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnClientSceneChanged() public method

public OnClientSceneChanged ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnLobbyClientAddPlayerFailed() public method

public OnLobbyClientAddPlayerFailed ( ) : void
return void

OnLobbyClientConnect() public method

public OnLobbyClientConnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnLobbyClientDisconnect() public method

public OnLobbyClientDisconnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnLobbyClientEnter() public method

public OnLobbyClientEnter ( ) : void
return void

OnLobbyClientExit() public method

public OnLobbyClientExit ( ) : void
return void

OnLobbyClientSceneChanged() public method

public OnLobbyClientSceneChanged ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnLobbyServerConnect() public method

public OnLobbyServerConnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnLobbyServerCreateGamePlayer() public method

public OnLobbyServerCreateGamePlayer ( NetworkConnection conn, short playerControllerId ) : GameObject
conn NetworkConnection
playerControllerId short
return UnityEngine.GameObject

OnLobbyServerCreateLobbyPlayer() public method

public OnLobbyServerCreateLobbyPlayer ( NetworkConnection conn, short playerControllerId ) : GameObject
conn NetworkConnection
playerControllerId short
return UnityEngine.GameObject

OnLobbyServerDisconnect() public method

public OnLobbyServerDisconnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnLobbyServerPlayerRemoved() public method

public OnLobbyServerPlayerRemoved ( NetworkConnection conn, short playerControllerId ) : void
conn NetworkConnection
playerControllerId short
return void

OnLobbyServerPlayersReady() public method

public OnLobbyServerPlayersReady ( ) : void
return void

OnLobbyServerSceneChanged() public method

public OnLobbyServerSceneChanged ( string sceneName ) : void
sceneName string
return void

OnLobbyServerSceneLoadedForPlayer() public method

public OnLobbyServerSceneLoadedForPlayer ( GameObject lobbyPlayer, GameObject gamePlayer ) : bool
lobbyPlayer UnityEngine.GameObject
gamePlayer UnityEngine.GameObject
return bool

OnLobbyStartClient() public method

public OnLobbyStartClient ( NetworkClient lobbyClient ) : void
lobbyClient NetworkClient
return void

OnLobbyStartHost() public method

public OnLobbyStartHost ( ) : void
return void

OnLobbyStartServer() public method

public OnLobbyStartServer ( ) : void
return void

OnLobbyStopClient() public method

public OnLobbyStopClient ( ) : void
return void

OnLobbyStopHost() public method

public OnLobbyStopHost ( ) : void
return void

OnServerAddPlayer() public method

public OnServerAddPlayer ( NetworkConnection conn, short playerControllerId ) : void
conn NetworkConnection
playerControllerId short
return void

OnServerConnect() public method

public OnServerConnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnServerDisconnect() public method

public OnServerDisconnect ( NetworkConnection conn ) : void
conn NetworkConnection
return void

OnServerRemovePlayer() public method

public OnServerRemovePlayer ( NetworkConnection conn, PlayerController player ) : void
conn NetworkConnection
player PlayerController
return void

OnServerSceneChanged() public method

public OnServerSceneChanged ( string sceneName ) : void
sceneName string
return void

OnStartClient() public method

public OnStartClient ( NetworkClient lobbyClient ) : void
lobbyClient NetworkClient
return void

OnStartHost() public method

public OnStartHost ( ) : void
return void

OnStartServer() public method

public OnStartServer ( ) : void
return void

OnStopClient() public method

public OnStopClient ( ) : void
return void

OnStopHost() public method

public OnStopHost ( ) : void
return void

SendReturnToLobby() public method

public SendReturnToLobby ( ) : bool
return bool

ServerChangeScene() public method

public ServerChangeScene ( string sceneName ) : void
sceneName string
return void

ServerReturnToLobby() public method

public ServerReturnToLobby ( ) : void
return void

TryToAddPlayer() public method

public TryToAddPlayer ( ) : void
return void

Property Details

lobbySlots public_oe property

public NetworkLobbyPlayer[],UnityEngine.Networking lobbySlots
return UnityEngine.Networking.NetworkLobbyPlayer[]