C# Class TDSM.Core.PlayerExtensions

Afficher le fichier Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Méthodes publiques

Méthode Description
GetAuthenticatedAs ( this player ) : string

Gets who the player is authenticated as

GetAuthenticatedBy ( this player ) : string

Gets the authenticating service

GetLastCostlyCommand ( this player ) : System.DateTime
GetSSCReadyForSave ( this player ) : bool
IsAuthenticated ( this player ) : bool

Gets a value indicating whether this player is authenticated.

IsSelfAuthenticated ( this player ) : bool

Gets a value indicating whether this player is self authenticated.

This is not for real authentication, rather to prevent self authentications being included

SetAuthentication ( this player, string auth, string by ) : void

Sets the authentication of this user

SetLastCostlyCommand ( this player, System.DateTime value ) : void
SetSSCReadyForSave ( this player, bool value ) : void

Private Methods

Méthode Description
SetAuthenticatedAs ( this player, string value ) : void

Sets who the player is authenticated as

SetAuthenticatedBy ( this player, string value ) : void

Sets the authenticating service

Method Details

GetAuthenticatedAs() public static méthode

Gets who the player is authenticated as
public static GetAuthenticatedAs ( this player ) : string
player this
Résultat string

GetAuthenticatedBy() public static méthode

Gets the authenticating service
public static GetAuthenticatedBy ( this player ) : string
player this
Résultat string

GetLastCostlyCommand() public static méthode

public static GetLastCostlyCommand ( this player ) : System.DateTime
player this
Résultat System.DateTime

GetSSCReadyForSave() public static méthode

public static GetSSCReadyForSave ( this player ) : bool
player this
Résultat bool

IsAuthenticated() public static méthode

Gets a value indicating whether this player is authenticated.
public static IsAuthenticated ( this player ) : bool
player this
Résultat bool

IsSelfAuthenticated() public static méthode

Gets a value indicating whether this player is self authenticated.
This is not for real authentication, rather to prevent self authentications being included
public static IsSelfAuthenticated ( this player ) : bool
player this
Résultat bool

SetAuthentication() public static méthode

Sets the authentication of this user
public static SetAuthentication ( this player, string auth, string by ) : void
player this
auth string Auth.
by string By.
Résultat void

SetLastCostlyCommand() public static méthode

public static SetLastCostlyCommand ( this player, System.DateTime value ) : void
player this
value System.DateTime
Résultat void

SetSSCReadyForSave() public static méthode

public static SetSSCReadyForSave ( this player, bool value ) : void
player this
value bool
Résultat void