Class PlayerAuthentication
Inheritance
System.Object
Inherited Members
Show
Syntax
public class PlayerAuthentication
Constructors
PlayerAuthentication(INetworkAuthenticator, Object)
Declaration
public PlayerAuthentication(INetworkAuthenticator authenticator, object data)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Authentication.INetworkAuthenticator | authenticator | |
System.Object | data |
Fields
Authenticator
What Authenticator was used to accept this player Null if no Authenticator existed on Server
Declaration
public readonly INetworkAuthenticator Authenticator
Data
Authentication data set by Authenticator when player is accepted
Declaration
public readonly object Data
Methods
GetData<T>()
Helper method to cast to type set by NetworkAuthenticatorBase WARNING: this function is NOT thread safe when data is rather than T directly
Declaration
public T GetData<T>()
Returns
Type | Description |
---|---|
T |