// Byte Serialization public override void AddToByteStream(VRage.ByteStream stream) { base.AddToByteStream(stream); stream.addBoolean(IsMoving); stream.addBoolean(RecentlyMoved); stream.addDateTime(RecentlyMovedEnds); }
// Byte Serialization public override void AddToByteStream(VRage.ByteStream stream) { base.AddToByteStream(stream); UpdateConcealabilityManual(); stream.addBoolean(IsObserved); stream.addBoolean(IsRevealBlocked); stream.addLongList(EntitiesViewedBy.Keys.ToList()); stream.addDateTime(RevealedAt); }
// Byte Serialization public override void AddToByteStream(VRage.ByteStream stream) { base.AddToByteStream(stream); //Log.Trace("Adding observing entity to byte stream", "AddToByteStream"); stream.addLongList(EntitiesViewing.Keys.ToList()); stream.addDateTime(LastObservingTime); stream.addVector3D(LastObservingPosition); //Log.Trace("Serialized LastObservingTime of " + LastObservingTime, "AddToByteStream"); //Log.Trace("Serialized LastObservingPosition of " + LastObservingPosition, "AddToByteStream"); //Log.Trace("Serialized ViewDistance of " + ViewDistance, "AddToByteStream"); }