Class ClientConnection
A serverside record of a client.
public class ClientConnection
- Inheritance
-
ClientConnection
- Inherited Members
Properties
Address
The IP address of the client.
public IPAddress Address { get; set; }
Property Value
Bridge
Communication bridge with the client, either a direct in-memory link or one established by network packets.
public IClientBridge Bridge { get; set; }
Property Value
Id
ID of the client. Client 0 is typically a host in a LAN game.
public int Id { get; set; }
Property Value
InputSnapshots
The server keeps track of the last 64 input snapshots from the client, partly for the purposes of rollback, partly for cheating.
public ClientCommands[] InputSnapshots { get; }
Property Value
State
Connection state of the client.
public GameSessionState State { get; set; }
Property Value
Methods
AddInputSnapshot(ClientCommands)
public void AddInputSnapshot(ClientCommands snapshot)
Parameters
snapshot
ClientCommands
GetInputSnapshotInPast(int)
public ClientCommands GetInputSnapshotInPast(int pastSteps = 1)
Parameters
pastSteps
int
Returns
GetLatestInputSnapshot()
public ClientCommands GetLatestInputSnapshot()
Returns
Renew(IPAddress, IClientBridge)
public void Renew(IPAddress address, IClientBridge bridge)
Parameters
address
IPAddressbridge
IClientBridge