public void AddToByteStream(VRage.ByteStream stream) { base.AddToByteStream(stream); stream.addLongList(SpawnOwners); stream.addString(DisplayName); stream.addLongList(BigOwners); }
// 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"); }
// Byte Serialization public virtual void AddToByteStream(VRage.ByteStream stream) { base.AddToByteStream(stream); Log.Trace("Adding Revealed Grid to byte stream", "AddToByteStream"); if (SpawnOwners == null) { Log.Error("Serializing with null spawnowners", "AddToByteStream"); SpawnOwners = new List<long>(); } if (BigOwners == null) { Log.Error("Serializing with null BigOwners", "AddToByteStream"); BigOwners = new List<long>(); } Log.Info("Adding spawnowners ", "FromBytes"); stream.addLongList(SpawnOwners); Log.Info("Adding BigOwners ", "FromBytes"); stream.addLongList(BigOwners); stream.addBoolean(NeededForSpawn); stream.addBoolean(IsProducing); stream.addBoolean(IsChargingBatteries); stream.addBoolean(IsPiloted); }
// Byte Serialization public override void AddToByteStream(VRage.ByteStream stream) { base.AddToByteStream(stream); stream.addLongList(SpawnOwners); stream.addLongList(BigOwners); }