C# Class Railgun.RailClient

Inheritance: RailConnection
Afficher le fichier Open project: ashoulson/RailgunNet

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

RailClient() public méthode

public RailClient ( ) : System.Collections.Generic
Résultat System.Collections.Generic

SetPeer() public méthode

public SetPeer ( IRailNetPeer netPeer ) : void
netPeer IRailNetPeer
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void