コード例 #1
0
 // Byte Serialization
 public override void AddToByteStream(VRage.ByteStream stream)
 {
     base.AddToByteStream(stream);
     stream.addBoolean(IsMoving);
     stream.addBoolean(RecentlyMoved);
     stream.addDateTime(RecentlyMovedEnds);
 }
コード例 #2
0
 // 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);
 }
コード例 #3
0
        // 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");
        }