コード例 #1
0
 internal void Populate(
     IEnumerable <RailCommandUpdate> commandUpdates,
     RailView view)
 {
     this.commandUpdates.AddPending(commandUpdates);
     this.view.Integrate(view);
 }
コード例 #2
0
ファイル: RailView.cs プロジェクト: longde123/RailgunNet
 public void Integrate(RailView other)
 {
     foreach (KeyValuePair <EntityId, RailViewEntry> pair in other.latestUpdates)
     {
         this.RecordUpdate(pair.Key, pair.Value);
     }
 }
コード例 #3
0
 internal RailClientPeer(
     IRailNetPeer netPeer,
     RailInterpreter interpreter)
     : base(netPeer, interpreter)
 {
     this.localView   = new RailView();
     this.sortingList = new List <RailEntity>();
 }
コード例 #4
0
        internal RailScope()
        {
            this.Evaluator     = new RailScopeEvaluator();
            this.lastSent      = new RailView();
            this.ackedByClient = new RailView();

            this.entryList     = new List <KeyValuePair <float, RailEntity> >();
            this.activeList    = new List <RailStateDelta>();
            this.frozenList    = new List <RailStateDelta>();
            this.destroyedList = new List <RailStateDelta>();
        }
コード例 #5
0
 public RailClientPacket()
     : base()
 {
     this.view           = new RailView();
     this.commandUpdates = new RailPackedListC2S <RailCommandUpdate>();
 }
コード例 #6
0
 internal void IntegrateAcked(RailView packetView)
 {
     this.ackedByClient.Integrate(packetView);
 }