protected override void SetParent(INetSerializable parent) { if (parent == null || parent.Root != base.Root) { reassigned.Clear(); } base.SetParent(parent); }
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(); } } }
public void Clear() { netVersion.Clear(); LocalId = 0; }