protected override bool OnRead() { bool bufferReadValid = true; this.ObjectId = GameNetworkMessage.ReadMissionObjectIdFromPacket(ref bufferReadValid); this.Parent = GameNetworkMessage.ReadMissionObjectReferenceFromPacket(ref bufferReadValid); this.Frame = GameNetworkMessage.ReadNonUniformTransformFromPacket(CompressionBasic.PositionCompressionInfo, CompressionBasic.LowResQuaternionCompressionInfo, ref bufferReadValid); return(bufferReadValid); }
protected override bool OnRead() { bool bufferReadValid = true; this.ObjectId = GameNetworkMessage.ReadMissionObjectIdFromPacket(ref bufferReadValid); this.Prefab = GameNetworkMessage.ReadStringFromPacket(ref bufferReadValid); this.Frame = GameNetworkMessage.ReadMatrixFrameFromPacket(ref bufferReadValid); int capacity = GameNetworkMessage.ReadIntFromPacket(CompressionBasic.EntityChildCountCompressionInfo, ref bufferReadValid); if (bufferReadValid) { this.ChildObjectIds = new List <MissionObjectId>(capacity); for (int index = 0; index < capacity; ++index) { if (bufferReadValid) { this.ChildObjectIds.Add(GameNetworkMessage.ReadMissionObjectIdFromPacket(ref bufferReadValid)); } } } return(bufferReadValid); }