public InventoryState PetInventory; // Instance is shared if cloning public PetItem(int mapleId, InventoryType inventoryType, EquipSlot[] equipSlots, int slotMax) : base(mapleId, inventoryType, equipSlots, slotMax) { PetName = ""; LootSettings = new PetLootSettings(true, true, true, true, true, true, true, false, 1, true); PetInventory = new InventoryState(InventoryType.PetStorage); // TODO: parse xml for actual sizes }
public override void DeserializeExtraBytes(byte[] bytes) { var packet = new PacketReader(bytes); PetName = packet.ReadUnicodeString(); packet.ReadInt(); PetExp = packet.ReadLong(); PetLevel = packet.ReadShort(); packet.ReadShort(); packet.ReadShort(); PotionSettings = packet.ReadCollection <PetPotionSetting>().ToArray(); LootSettings = packet.Read <PetLootSettings>(); }