Class NetworkAuthenticator<T>
Inherited Members
Show
Mirage.Authentication.NetworkAuthenticator.AuthenticatorName
Syntax
public abstract class NetworkAuthenticator<T> : NetworkAuthenticator, INetworkAuthenticator
Type Parameters
Name | Description |
---|---|
T |
Methods
AuthenticateAsync(INetworkPlayer, T)
Called on server to Authenticate a message from client
Use OR . By default the async version just call the normal version.
Declaration
protected virtual UniTask<AuthenticationResult> AuthenticateAsync(INetworkPlayer player, T message)
Parameters
Type | Name | Description |
---|---|---|
Mirage.INetworkPlayer | player | player that send message |
T | message |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask<Mirage.Authentication.AuthenticationResult> |
Authenticate(INetworkPlayer, T)
Called on server to Authenticate a message from client
Use OR . By default the async version just call the normal version.
Declaration
protected virtual AuthenticationResult Authenticate(INetworkPlayer player, T message)
Parameters
Type | Name | Description |
---|---|---|
Mirage.INetworkPlayer | player | |
T | message |
Returns
Type | Description |
---|---|
Mirage.Authentication.AuthenticationResult |
SendAuthentication(NetworkClient, T)
Sends Authentication from client
Declaration
public void SendAuthentication(NetworkClient client, T message)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkClient | client | |
T | message |