Interface IPlayerPendingTask
- Namespace
- Uncreated.Warfare.Players.PendingTasks
- Assembly
- Uncreated.Warfare.dll
Used to perform tasks while the player is pending. Downloading kit data, stats, language data, etc.
public interface IPlayerPendingTask
Properties
CanReject
If this IPlayerPendingTask will ever reject players (by returning false in RunAsync(PlayerPending, CancellationToken)).
bool CanReject { get; }
Property Value
Methods
Apply(WarfarePlayer)
Applies this task to the player once they join and all tasks have finished.
void Apply(WarfarePlayer player)
Parameters
playerWarfarePlayer
RunAsync(PlayerPending, CancellationToken)
Runs this task and returns whether or not the player is allowed to connect.
Task<bool> RunAsync(PlayerPending e, CancellationToken token = default)
Parameters
ePlayerPendingtokenCancellationToken