Interface IClientBridge
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
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
SendGameStatePayload()
Not implemented.
Maps to GameStatePayload.
void SendGameStatePayload()
SendSpawnCompleteAck()
Maps to SpawnCompleteAck.
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