C# Class CaptainsMessLobbyManager, CaptainsMess

Inheritance: NetworkManager
Mostrar archivo Open project: hengineer/CaptainsMess

Public Properties

Property Type Description
lobbySlots CaptainsMessPlayer[],
maxPlayers int
maxPlayersPerConnection int
minPlayers int

Public Methods

Method Description
CallOnClientEnterLobby ( ) : void
CallOnClientExitLobby ( ) : void
HasGameStarted ( ) : bool
OnClientConnect ( NetworkConnection conn ) : void
OnClientDisconnect ( NetworkConnection conn ) : void
OnLobbyClientEnter ( ) : void
OnLobbyClientExit ( ) : void
OnLobbyServerConnect ( NetworkConnection conn ) : void
OnLobbyServerCreateLobbyPlayer ( NetworkConnection conn, short playerControllerId ) : GameObject
OnLobbyServerDisconnect ( NetworkConnection conn ) : void
OnLobbyServerPlayersReady ( ) : void
OnServerAddPlayer ( NetworkConnection conn, short playerControllerId ) : void
OnServerConnect ( NetworkConnection conn ) : void
OnServerDisconnect ( NetworkConnection conn ) : void
OnServerRemovePlayer ( NetworkConnection conn, PlayerController player ) : void
OnStartClient ( NetworkClient lobbyClient ) : void
OnStartServer ( ) : void
OnStopClient ( ) : void
SetMaxPlayers ( int value ) : void

Private Methods

Method Description
FindSlot ( ) : Byte

Method Details

CallOnClientEnterLobby() public method

public CallOnClientEnterLobby ( ) : void
return void

CallOnClientExitLobby() public method

public CallOnClientExitLobby ( ) : void
return void

HasGameStarted() public method

public HasGameStarted ( ) : bool
return bool

OnClientConnect() public method

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

OnClientDisconnect() public method

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

OnLobbyClientEnter() public method

public OnLobbyClientEnter ( ) : void
return void

OnLobbyClientExit() public method

public OnLobbyClientExit ( ) : void
return void

OnLobbyServerConnect() public method

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

OnLobbyServerCreateLobbyPlayer() public method

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

OnLobbyServerDisconnect() public method

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

OnLobbyServerPlayersReady() public method

public OnLobbyServerPlayersReady ( ) : 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

OnStartClient() public method

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

OnStartServer() public method

public OnStartServer ( ) : void
return void

OnStopClient() public method

public OnStopClient ( ) : void
return void

SetMaxPlayers() public method

public SetMaxPlayers ( int value ) : void
value int
return void

Property Details

lobbySlots public_oe property

public CaptainsMessPlayer[], lobbySlots
return CaptainsMessPlayer[],

maxPlayers public_oe property

public int maxPlayers
return int

maxPlayersPerConnection public_oe property

public int maxPlayersPerConnection
return int

minPlayers public_oe property

public int minPlayers
return int