C# Класс Railgun.RailClient

Наследование: RailConnection
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

QueueEvent() публичный Метод

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
Результат void

RailClient() публичный Метод

public RailClient ( ) : System.Collections.Generic
Результат System.Collections.Generic

SetPeer() публичный Метод

public SetPeer ( IRailNetPeer netPeer ) : void
netPeer IRailNetPeer
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void