Interface IClientBridge

Namespace
Game.Server
Assembly
Game.dll

A bridge to communicate with clients. Local clients have a direct link while remote clients are communicated with through packets.

public interface IClientBridge

Properties

Bypass

Local clients can bypass the whole authorisation step.

bool Bypass { get; }

Property Value

bool

Methods

SendAssetInfoRequest(AssetRegistry)

Informs the client of all necessary assets that the server is currently working with.

void SendAssetInfoRequest(AssetRegistry registry)

Parameters

registry AssetRegistry

SendAssetPayload(object)

Not implemented. Maps to AssetPayload.

void SendAssetPayload(object payload)

Parameters

payload object

SendAuthRequest(bool)

void SendAuthRequest(bool passwordNeeded)

Parameters

passwordNeeded bool

SendDisconnect(string)

Informs the client that it has been disconnected, e.g. in case of a kick/ban or the server shutting down.

void SendDisconnect(string reason)

Parameters

reason string

SendGameEventPayload(int, object[]?)

Not implemented.

Maps to GameEventPayload.

void SendGameEventPayload(int eventId, object[]? args)

Parameters

eventId int
args object[]

SendGameStatePayload()

Not implemented.

Maps to GameStatePayload.

void SendGameStatePayload()

SendSpawnCompleteAck()

void SendSpawnCompleteAck()

SendSpawnResponse(int)

Informs the client that its respective entity has been spawned in the world, and sends the latest game state snapshot.

void SendSpawnResponse(int clientEntityId)

Parameters

clientEntityId int

Update(float)

Updates the connection.

void Update(float delta)

Parameters

delta float