C# Class BeardedManStudios.Network.NetworkingPlayer

Inheritance: NetworkingSerialized
Afficher le fichier Open project: drakelinglabs/unityarmada Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat System

Ping() public méthode

Ping the NetworkingPlayer
public Ping ( ) : void
Résultat void

Rename() public méthode

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

SetMessageGroup() public méthode

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

SetMyBehavior() public méthode

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