C# Class SkylinesMultiplayer.MultiplayerManager

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: Fr0sZ/Skylines-Multiplayer Class Usage Examples

Public Properties

Property Type Description
instance MultiplayerManager
m_cNetworkManager CitizenNetworkManager
m_client Lidgren.Network.NetClient
m_isServer bool
m_players List
m_server Lidgren.Network.NetServer
m_vNetworkManager VehicleNetworkManager

Public Methods

Method Description
SendNetworkMessage ( Message message, SendTo sendTo, NetIncomingMessage netMessage = null, NetDeliveryMethod deliveryMethod = NetDeliveryMethod.ReliableOrdered ) : void
SpawnPlayer ( int id, string playerName, NetConnection ownerConnection = null ) : void

Private Methods

Method Description
Awake ( ) : void
ConnectToServer ( ) : void
HandleClientMessage ( NetIncomingMessage msg ) : void
HandleSeverMessage ( NetIncomingMessage msg ) : void
LateUpdate ( ) : void
OnDestroy ( ) : void
OnGUI ( ) : void
RemoveCitizens ( ) : void
SendHeartBeat ( ) : void
SpawnLocalPlayer ( ) : int

Start ( ) : void
StartServer ( ) : void
Update ( ) : void

Method Details

SendNetworkMessage() public method

public SendNetworkMessage ( Message message, SendTo sendTo, NetIncomingMessage netMessage = null, NetDeliveryMethod deliveryMethod = NetDeliveryMethod.ReliableOrdered ) : void
message Message
sendTo SendTo
netMessage Lidgren.Network.NetIncomingMessage
deliveryMethod NetDeliveryMethod
return void

SpawnPlayer() public method

public SpawnPlayer ( int id, string playerName, NetConnection ownerConnection = null ) : void
id int
playerName string
ownerConnection Lidgren.Network.NetConnection
return void

Property Details

instance public_oe static_oe property

public static MultiplayerManager,SkylinesMultiplayer instance
return MultiplayerManager

m_cNetworkManager public_oe property

public CitizenNetworkManager,SkylinesMultiplayer m_cNetworkManager
return CitizenNetworkManager

m_client public_oe property

public NetClient,Lidgren.Network m_client
return Lidgren.Network.NetClient

m_isServer public_oe property

public bool m_isServer
return bool

m_players public_oe property

public List m_players
return List

m_server public_oe property

public NetServer,Lidgren.Network m_server
return Lidgren.Network.NetServer

m_vNetworkManager public_oe property

public VehicleNetworkManager,SkylinesMultiplayer m_vNetworkManager
return VehicleNetworkManager