C# Class SharpMod.DProto

A class for interacting with dproto.
Afficher le fichier Open project: txdv/sharpmod

Méthodes publiques

Méthode Description
GetAuthIDProvider ( this player ) : DProto.ID

Gets the AuthID provider of the player.

GetProtocol ( this player ) : int

Gets the protocol version of the client.

Init ( ) : void

This has to be called in order to make this work this class proplery. If you use this class in your plugin, just call it when the plugin is loaded.

UpdateCVariables ( Player player ) : void

Updates the two dproto variables according to the player.

UpdateCVariables ( int id ) : void

Updates the two dproto variables according to the player id

Method Details

GetAuthIDProvider() public static méthode

Gets the AuthID provider of the player.
public static GetAuthIDProvider ( this player ) : DProto.ID
player this /// The player ///
Résultat DProto.ID

GetProtocol() public static méthode

Gets the protocol version of the client.
public static GetProtocol ( this player ) : int
player this
Résultat int

Init() public static méthode

This has to be called in order to make this work this class proplery. If you use this class in your plugin, just call it when the plugin is loaded.
public static Init ( ) : void
Résultat void

UpdateCVariables() public static méthode

Updates the two dproto variables according to the player.
public static UpdateCVariables ( Player player ) : void
player Player /// The information about this player ///
Résultat void

UpdateCVariables() public static méthode

Updates the two dproto variables according to the player id
public static UpdateCVariables ( int id ) : void
id int /// The player id ///
Résultat void