Class RemoteClientBridge

Namespace
Game.Server.Bridges
Assembly
Game.dll
public class RemoteClientBridge : IClientBridge
Inheritance
RemoteClientBridge
Implements
Inherited Members

Constructors

RemoteClientBridge(GameServer, IPAddress)

public RemoteClientBridge(GameServer server, IPAddress clientAddress)

Parameters

server GameServer
clientAddress IPAddress

Properties

Bypass

Local clients can bypass the whole authorisation step.

public bool Bypass { get; }

Property Value

bool

Methods

SendAssetInfoRequest(AssetRegistry)

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

public void SendAssetInfoRequest(AssetRegistry registry)

Parameters

registry AssetRegistry

SendAssetPayload(object)

Not implemented. Maps to AssetPayload.

public void SendAssetPayload(object payload)

Parameters

payload object

SendAuthRequest(bool)

public 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.

public void SendDisconnect(string reason)

Parameters

reason string

SendGameEventPayload(int, object[]?)

Not implemented.

Maps to GameEventPayload.

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

Parameters

eventId int
args object[]

SendGameStatePayload()

Not implemented.

Maps to GameStatePayload.

public void SendGameStatePayload()

SendSpawnCompleteAck()

public void SendSpawnCompleteAck()

SendSpawnResponse(int)

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

public void SendSpawnResponse(int clientEntityId)

Parameters

clientEntityId int

Update(float)

Updates the connection.

public void Update(float delta)

Parameters

delta float