1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-17 18:47:46 +00:00

Add remaining inventory container types

Most of these will remain unimplemented, but we need the enum to
be complete for Packet Analyzer to not trip over unknown ones.
This commit is contained in:
Joshua Goins 2025-07-13 08:14:35 -04:00
parent f88d62b80f
commit cca0f8c0e5
2 changed files with 67 additions and 0 deletions

View file

@ -304,6 +304,7 @@ impl Inventory {
ContainerType::ArmoryRing => &mut self.armoury_rings, ContainerType::ArmoryRing => &mut self.armoury_rings,
ContainerType::ArmorySoulCrystal => &mut self.armoury_soul_crystal, ContainerType::ArmorySoulCrystal => &mut self.armoury_soul_crystal,
ContainerType::ArmoryWeapon => &mut self.armoury_main_hand, ContainerType::ArmoryWeapon => &mut self.armoury_main_hand,
_ => todo!(),
} }
} }
@ -327,6 +328,7 @@ impl Inventory {
ContainerType::ArmoryRing => &self.armoury_rings, ContainerType::ArmoryRing => &self.armoury_rings,
ContainerType::ArmorySoulCrystal => &self.armoury_soul_crystal, ContainerType::ArmorySoulCrystal => &self.armoury_soul_crystal,
ContainerType::ArmoryWeapon => &self.armoury_main_hand, ContainerType::ArmoryWeapon => &self.armoury_main_hand,
_ => todo!(),
} }
} }

View file

@ -17,6 +17,19 @@ pub enum ContainerType {
Equipped = 1000, Equipped = 1000,
Currency = 2000, Currency = 2000,
Crystals = 2001,
MailEdit = 2002,
Mail = 2003,
KeyItems = 2004,
HandIn = 2005,
Unk1 = 2006,
BlockedItems = 2007,
Unk2 = 2008,
Examine = 2009,
Reclaim = 2010,
HousingExteriorAppearanceEdit = 2011,
HousingInteriorAppearanceEdit = 2012,
ReconstructionBuyback = 2013,
ArmoryOffWeapon = 3200, ArmoryOffWeapon = 3200,
ArmoryHead = 3201, ArmoryHead = 3201,
@ -30,6 +43,58 @@ pub enum ContainerType {
ArmoryRing = 3300, ArmoryRing = 3300,
ArmorySoulCrystal = 3400, ArmorySoulCrystal = 3400,
ArmoryWeapon = 3500, ArmoryWeapon = 3500,
SaddleBag1 = 4000,
SaddleBag2 = 4001,
PremiumSaddleBag1 = 4100,
PremiumSaddleBag2 = 4101,
Cosmopouch1 = 5000,
Cosmopouch2 = 5001,
Invalid = 9999,
RetainerPage1 = 10000,
RetainerPage2 = 10001,
RetainerPage3 = 10002,
RetainerPage4 = 10003,
RetainerPage5 = 10004,
RetainerPage6 = 10005,
RetainerPage7 = 10006,
RetainerEquippedItems = 11000,
RetainerGil = 12000,
RetainerCrystals = 12001,
RetainerMarket = 12002,
FreeCompanyPage1 = 20000,
FreeCompanyPage2 = 20001,
FreeCompanyPage3 = 20002,
FreeCompanyPage4 = 20003,
FreeCompanyPage5 = 20004,
FreeCompanyGil = 22000,
FreeCompanyCrystals = 22001,
HousingExteriorAppearance = 25000,
HousingExteriorPlacedItems = 25001,
HousingInteriorAppearance = 25002,
HousingInteriorPlacedItems1 = 25003,
HousingInteriorPlacedItems2 = 25004,
HousingInteriorPlacedItems3 = 25005,
HousingInteriorPlacedItems4 = 25006,
HousingInteriorPlacedItems5 = 25007,
HousingInteriorPlacedItems6 = 25008,
HousingInteriorPlacedItems7 = 25009,
HousingInteriorPlacedItems8 = 25010,
HousingExteriorStoreroom = 27000,
HousingInteriorStoreroom1 = 27001,
HousingInteriorStoreroom2 = 27002,
HousingInteriorStoreroom3 = 27003,
HousingInteriorStoreroom4 = 27004,
HousingInteriorStoreroom5 = 27005,
HousingInteriorStoreroom6 = 27006,
HousingInteriorStoreroom7 = 27007,
HousingInteriorStoreroom8 = 27008,
} }
/// Represents a generic item storage. /// Represents a generic item storage.