C# Class CaptainsMessNetworkManager, CaptainsMess

Inheritance: CaptainsMessLobbyManager
ファイルを表示 Open project: hengineer/CaptainsMess Class Usage Examples

Public Properties

Property Type Description
allReadyCountdown float
allReadyCountdownDuration float
broadcastIdentifier string
deviceId string
discoveryClient CaptainsMessClient
discoveryServer CaptainsMessServer
forceServer bool
listener CaptainsMessListener
localPlayer CaptainsMessPlayer
peerId string
startHostingDelay float
verboseLogging bool

Public Methods

Method Description
AreAllPlayersCompatible ( ) : bool
AreAllPlayersReady ( ) : bool
AutoConnect ( ) : void
Cancel ( ) : void
CheckAllReady ( ) : void
CheckReadyToBegin ( ) : void
FinishGame ( ) : void
HasGameStarted ( ) : bool
HighestConnectedVersion ( ) : int
InitNetworkTransport ( ) : void
IsBroadcasting ( ) : bool
IsConnected ( ) : bool
IsHost ( ) : bool
IsJoining ( ) : bool
JoinServer ( string aAddress, int aPort ) : void
LobbyPlayers ( ) : List
MaybeStartHosting ( ) : void
NumPlayers ( ) : int
NumReadyPlayers ( ) : int
OnDiscoveredServer ( DiscoveredServer, aServer ) : void
OnLobbyClientEnter ( ) : void
OnLobbyClientExit ( ) : void
OnLobbyServerConnect ( NetworkConnection conn ) : void
OnLobbyServerCreateLobbyPlayer ( NetworkConnection conn, short playerControllerId ) : GameObject
OnLobbyServerDisconnect ( NetworkConnection conn ) : void
OnLobbyServerPlayersReady ( ) : void
OnReceivedBroadcast ( string aFromAddress, string aData ) : void
SendAbortGameMessage ( ) : void
SendCountdownCancelledMessage ( ) : void
SendCountdownStartedMessage ( ) : void
SendDiscoveredServerMessage ( DiscoveredServer, aServer ) : void
SendJoinedLobbyMessage ( ) : void
SendLeftLobbyMessage ( ) : void
SendReceivedBroadcastMessage ( string aFromAddress, string aData ) : void
SendServerCreatedMessage ( ) : void
SendStartConnectingMessage ( ) : void
SendStartGameMessage ( List aStartingPlayers ) : void
SendStopConnectingMessage ( ) : void
SetPrivateTeamKey ( string key ) : void
ShutdownNetworkTransport ( ) : void
Start ( ) : void
StartBroadcasting ( ) : void
StartHosting ( ) : void
StartJoining ( ) : void
StartLocalGameForDebugging ( ) : void
Update ( ) : void

Private Methods

Method Description
BestHostingCandidate ( ) : string
GenerateNewUniqueID ( ) : string
GetHostingCandidates ( ) : List
GetUniqueDeviceId ( ) : string
JoinServerInternal ( ) : void
StartHostingInternal ( ) : void

Method Details

AreAllPlayersCompatible() public method

public AreAllPlayersCompatible ( ) : bool
return bool

AreAllPlayersReady() public method

public AreAllPlayersReady ( ) : bool
return bool

AutoConnect() public method

public AutoConnect ( ) : void
return void

Cancel() public method

public Cancel ( ) : void
return void

CheckAllReady() public method

public CheckAllReady ( ) : void
return void

CheckReadyToBegin() public method

public CheckReadyToBegin ( ) : void
return void

FinishGame() public method

public FinishGame ( ) : void
return void

HasGameStarted() public method

public HasGameStarted ( ) : bool
return bool

HighestConnectedVersion() public method

public HighestConnectedVersion ( ) : int
return int

InitNetworkTransport() public method

public InitNetworkTransport ( ) : void
return void

IsBroadcasting() public method

public IsBroadcasting ( ) : bool
return bool

IsConnected() public method

public IsConnected ( ) : bool
return bool

IsHost() public method

public IsHost ( ) : bool
return bool

IsJoining() public method

public IsJoining ( ) : bool
return bool

JoinServer() public method

public JoinServer ( string aAddress, int aPort ) : void
aAddress string
aPort int
return void

LobbyPlayers() public method

public LobbyPlayers ( ) : List
return List

MaybeStartHosting() public method

public MaybeStartHosting ( ) : void
return void

NumPlayers() public method

public NumPlayers ( ) : int
return int

NumReadyPlayers() public method

public NumReadyPlayers ( ) : int
return int

OnDiscoveredServer() public method

public OnDiscoveredServer ( DiscoveredServer, aServer ) : void
aServer DiscoveredServer,
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

OnReceivedBroadcast() public method

public OnReceivedBroadcast ( string aFromAddress, string aData ) : void
aFromAddress string
aData string
return void

SendAbortGameMessage() public method

public SendAbortGameMessage ( ) : void
return void

SendCountdownCancelledMessage() public method

public SendCountdownCancelledMessage ( ) : void
return void

SendCountdownStartedMessage() public method

public SendCountdownStartedMessage ( ) : void
return void

SendDiscoveredServerMessage() public method

public SendDiscoveredServerMessage ( DiscoveredServer, aServer ) : void
aServer DiscoveredServer,
return void

SendJoinedLobbyMessage() public method

public SendJoinedLobbyMessage ( ) : void
return void

SendLeftLobbyMessage() public method

public SendLeftLobbyMessage ( ) : void
return void

SendReceivedBroadcastMessage() public method

public SendReceivedBroadcastMessage ( string aFromAddress, string aData ) : void
aFromAddress string
aData string
return void

SendServerCreatedMessage() public method

public SendServerCreatedMessage ( ) : void
return void

SendStartConnectingMessage() public method

public SendStartConnectingMessage ( ) : void
return void

SendStartGameMessage() public method

public SendStartGameMessage ( List aStartingPlayers ) : void
aStartingPlayers List
return void

SendStopConnectingMessage() public method

public SendStopConnectingMessage ( ) : void
return void

SetPrivateTeamKey() public method

public SetPrivateTeamKey ( string key ) : void
key string
return void

ShutdownNetworkTransport() public method

public ShutdownNetworkTransport ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StartBroadcasting() public method

public StartBroadcasting ( ) : void
return void

StartHosting() public method

public StartHosting ( ) : void
return void

StartJoining() public method

public StartJoining ( ) : void
return void

StartLocalGameForDebugging() public method

public StartLocalGameForDebugging ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

allReadyCountdown public_oe property

public float allReadyCountdown
return float

allReadyCountdownDuration public_oe property

public float allReadyCountdownDuration
return float

broadcastIdentifier public_oe property

public string broadcastIdentifier
return string

deviceId public_oe property

public string deviceId
return string

discoveryClient public_oe property

public CaptainsMessClient discoveryClient
return CaptainsMessClient

discoveryServer public_oe property

public CaptainsMessServer discoveryServer
return CaptainsMessServer

forceServer public_oe property

public bool forceServer
return bool

listener public_oe property

public CaptainsMessListener listener
return CaptainsMessListener

localPlayer public_oe property

public CaptainsMessPlayer localPlayer
return CaptainsMessPlayer

peerId public_oe property

public string peerId
return string

startHostingDelay public_oe property

public float startHostingDelay
return float

verboseLogging public_oe property

public bool verboseLogging
return bool