コード例 #1
0
 protected override void SetParent(INetSerializable parent)
 {
     if (parent == null || parent.Root != base.Root)
     {
         reassigned.Clear();
     }
     base.SetParent(parent);
 }
コード例 #2
0
 protected void SetDirtySooner(uint tick)
 {
     tick = Math.Max(tick, minNextDirtyTime);
     if (dirtyTick > tick)
     {
         dirtyTick = tick;
         if (Parent != null)
         {
             Parent.DirtyTick = Math.Min(Parent.DirtyTick, tick);
         }
         if (Root != null)
         {
             minNextDirtyTime = Root.Clock.GetLocalTick() + DeltaAggregateTicks;
             ChangeVersion.Set(Root.Clock.netVersion);
         }
         else
         {
             minNextDirtyTime = 0u;
             ChangeVersion.Clear();
         }
     }
 }
コード例 #3
0
 public void Clear()
 {
     netVersion.Clear();
     LocalId = 0;
 }