C# Class BeardedManStudios.Network.NetworkingPlayer

Inheritance: NetworkingSerialized
Exibir arquivo Open project: drakelinglabs/unityarmada Class Usage Examples

Public Methods

Method Description
NetworkingPlayer ( ulong networkId, string ip, object socketEndpoint, string name ) : System

Constructor for the NetworkingPlayer

Ping ( ) : void

Ping the NetworkingPlayer

Rename ( string name ) : void

Set the name of this player

SetMessageGroup ( ushort messageGroup ) : void

Assigns the message group for this player

SetMyBehavior ( NetworkedMonoBehavior behavior ) : void

Assigns the object that is the players identity object

Method Details

NetworkingPlayer() public method

Constructor for the NetworkingPlayer
public NetworkingPlayer ( ulong networkId, string ip, object socketEndpoint, string name ) : System
networkId ulong NetworkId set for the NetworkingPlayer
ip string IP address of the NetworkingPlayer
socketEndpoint object The socket to the Networking player
name string Name of the NetworkingPlayer
return System

Ping() public method

Ping the NetworkingPlayer
public Ping ( ) : void
return void

Rename() public method

Set the name of this player
public Rename ( string name ) : void
name string The name to be assigned
return void

SetMessageGroup() public method

Assigns the message group for this player
public SetMessageGroup ( ushort messageGroup ) : void
messageGroup ushort The numerical identifier of the message group
return void

SetMyBehavior() public method

Assigns the object that is the players identity object
public SetMyBehavior ( NetworkedMonoBehavior behavior ) : void
behavior NetworkedMonoBehavior The NetworkedMonoBehavior that represents the player
return void