C# Class SharpMod.DProto

A class for interacting with dproto.
ファイルを表示 Open project: txdv/sharpmod

Public Methods

Method 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 method

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

GetProtocol() public static method

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

Init() public static method

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
return void

UpdateCVariables() public static method

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

UpdateCVariables() public static method

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