Skip to main content

Class PlayerAuthentication

Inheritance
System.Object
Inherited Members
Show
Syntax
public class PlayerAuthentication

Constructors

PlayerAuthentication(INetworkAuthenticator, Object)

Declaration
public PlayerAuthentication(INetworkAuthenticator authenticator, object data)
Parameters
TypeNameDescription
Mirage.Authentication.INetworkAuthenticatorauthenticator
System.Objectdata

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
TypeDescription
T