C# Class TDSM.Core.PlayerExtensions

Mostra file Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Methods

Method 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

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

Gets who the player is authenticated as
public static GetAuthenticatedAs ( this player ) : string
player this
return string

GetAuthenticatedBy() public static method

Gets the authenticating service
public static GetAuthenticatedBy ( this player ) : string
player this
return string

GetLastCostlyCommand() public static method

public static GetLastCostlyCommand ( this player ) : System.DateTime
player this
return System.DateTime

GetSSCReadyForSave() public static method

public static GetSSCReadyForSave ( this player ) : bool
player this
return bool

IsAuthenticated() public static method

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

IsSelfAuthenticated() public static method

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

SetAuthentication() public static method

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

SetLastCostlyCommand() public static method

public static SetLastCostlyCommand ( this player, System.DateTime value ) : void
player this
value System.DateTime
return void

SetSSCReadyForSave() public static method

public static SetSSCReadyForSave ( this player, bool value ) : void
player this
value bool
return void