Class MtaServer<TPlayer>
Base class for any MtaServer that supports an alternative player class.
This class can not be instantiated
Inheritance
MtaServer<TPlayer>
Assembly: SlipeServer.Server.dll
Syntax
public abstract class MtaServer<TPlayer> : MtaServer where TPlayer : Player
Type Parameters
Name |
Description |
TPlayer |
The player type
|
Constructors
|
Edit this page
View Source
MtaServer(Action<ServerBuilder>)
Declaration
public MtaServer(Action<ServerBuilder> builderAction)
Parameters
|
Edit this page
View Source
MtaServer(IServiceProvider, Action<ServerBuilder>)
Declaration
public MtaServer(IServiceProvider serviceProvider, Action<ServerBuilder> builderAction)
Parameters
Methods
|
Edit this page
View Source
HandlePlayerJoin(Player)
Handles a player joining the server, and triggers the appropriate event.
This method is generally intended to be called from packet handlers.
Declaration
public override void HandlePlayerJoin(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Overrides
|
Edit this page
View Source
SetupDependencies(Action<IServiceCollection>?)
Declaration
protected override void SetupDependencies(Action<IServiceCollection>? dependencyCallback)
Parameters
Overrides
Events
|
Edit this page
View Source
PlayerJoined
Declaration
public event Action<TPlayer>? PlayerJoined
Event Type
Type |
Description |
Action<TPlayer> |
|
Extension Methods