C# Class Railgun.RailClient

Inheritance: RailConnection
Datei anzeigen Open project: ashoulson/RailgunNet

Public Methods

Method Description
QueueEvent ( RailEvent evnt, int attempts = 3 ) : void

Queues an event to broadcast to all clients. Use a RailEvent.SEND_RELIABLE (-1) for the number of attempts to send the event reliable-ordered (infinite retries).

RailClient ( ) : System.Collections.Generic
SetPeer ( IRailNetPeer netPeer ) : void
Update ( ) : void

Private Methods

Method Description
OnPacketReceived ( IRailServerPacket packet ) : void
ProcessDelta ( RailStateDelta delta ) : void
UpdateControlStatus ( RailEntity entity, RailStateDelta delta ) : void
UpdatePendingEntities ( Tick serverTick ) : void

Checks to see if any pending entities can be added to the world and adds them if applicable.

UpdateRoom ( Tick localTick, Tick estimatedServerTick ) : void

Updates the room a number of ticks. If we have entities waiting to be added, this function will check them and add them if applicable.

Method Details

QueueEvent() public method

Queues an event to broadcast to all clients. Use a RailEvent.SEND_RELIABLE (-1) for the number of attempts to send the event reliable-ordered (infinite retries).
public QueueEvent ( RailEvent evnt, int attempts = 3 ) : void
evnt RailEvent
attempts int
return void

RailClient() public method

public RailClient ( ) : System.Collections.Generic
return System.Collections.Generic

SetPeer() public method

public SetPeer ( IRailNetPeer netPeer ) : void
netPeer IRailNetPeer
return void

Update() public method

public Update ( ) : void
return void