protected override void OnWrite() { GameNetworkMessage.WriteMissionObjectIdToPacket(this.ObjectId); GameNetworkMessage.WriteStringToPacket(this.Prefab); GameNetworkMessage.WriteMatrixFrameToPacket(this.Frame); GameNetworkMessage.WriteIntToPacket(this.ChildObjectIds.Count, CompressionBasic.EntityChildCountCompressionInfo); foreach (MissionObjectId childObjectId in this.ChildObjectIds) { GameNetworkMessage.WriteMissionObjectIdToPacket(childObjectId); } }
protected override void OnWrite() { GameNetworkMessage.WriteMissionObjectIdToPacket(this.ObjectId); GameNetworkMessage.WriteMissionObjectReferenceToPacket(this.Parent); GameNetworkMessage.WriteNonUniformTransformToPacket(this.Frame, CompressionBasic.PositionCompressionInfo, CompressionBasic.LowResQuaternionCompressionInfo); }