protected override void SerializeImpl(IOutgoingMessageStream messageStream) { messageStream.WriteBool(PartialUpdate); if (!PartialUpdate) { messageStream.WriteByte(InventorySize); } messageStream.WriteInt64(InventoryId); messageStream.WriteInt16((short)InventoryType); Write(messageStream, InventoryContent); }
protected override void SerializeImpl(IOutgoingMessageStream messageStream) { messageStream.WriteEntityId(EntityId); messageStream.WriteBool(Success); }