Responsible for encoding and decoding packet information.
Exemplo n.º 1
0
 internal RailServerPeer(
     IRailNetPeer netPeer,
     RailInterpreter interpreter)
     : base(netPeer, interpreter)
 {
     this.scope = new RailScope();
 }
Exemplo n.º 2
0
 internal RailClientPeer(
     IRailNetPeer netPeer,
     RailInterpreter interpreter)
     : base(netPeer, interpreter)
 {
     this.localView   = new RailView();
     this.sortingList = new List <RailEntity>();
 }
Exemplo n.º 3
0
        protected RailPeer(
            IRailNetPeer netPeer,
            RailInterpreter interpreter,
            RailPacket reusableIncoming,
            RailPacket reusableOutgoing)
        {
            this.netPeer     = netPeer;
            this.interpreter = interpreter;

            this.controlledEntities = new HashSet <RailEntity>();
            this.remoteClock        = new RailClock();

            this.outgoingEvents        = new Queue <RailEvent>();
            this.reusableIncoming      = reusableIncoming;
            this.reusableOutgoing      = reusableOutgoing;
            this.lastQueuedEventId     = SequenceId.START.Next;
            this.processedEventHistory = new SequenceWindow(SequenceId.START);

            this.netPeer.PayloadReceived += this.OnPayloadReceived;
        }
Exemplo n.º 4
0
 protected RailConnection()
 {
   this.room = new RailRoom();
   this.interpreter = new RailInterpreter();
   this.hasStarted = false;
 }
Exemplo n.º 5
0
 protected RailConnection()
 {
     this.room        = new RailRoom();
     this.interpreter = new RailInterpreter();
     this.hasStarted  = false;
 }