class
cCollectableItems
Base classes
- class ISimulatorSerializable
- class DefaultRefCounted
- The default implementation of a reference counted class.
Public types
- struct UnlockableItem
Public static variables
Constructors, destructors, conversion operators
- ASSERT_SIZE(UnlockableItem, 0x1C)
Public functions
-
auto LoadConfig(uint32_
t configGroupID, uint32_ t configInstanceID, uint32_ t itemsGroupID) -> void -
auto AddUnlockableItem(uint32_
t instanceID, uint32_ t groupID, int itemUnlockLevel, uint32_ t categoryID, int row, int column, int pageIndex, float itemUnlockFindPercentage, uint32_ t itemUnlockEffect) -> void -
auto AddUnlockableItemFromProp(struct ResourceKey key,
uint32_
t categoryID, int row, int column, int pageIndex) -> bool - Reads the prop file, checks the
itemUnlockLevel
,itemUnlockEffect
anditemUnlockFindPercentage
properties, and calls AddUnlockableItem(). - auto sub_597BC0(UnkHashMap& dst, int, const ResourceKey& speciesKey) -> void
- auto sub_597390(eastl::vector<int>& dst, struct cCollectableItemID itemID, int) -> void
- auto AddRef() -> int pure virtual
- auto Release() -> int pure virtual
-
auto Cast(uint32_
t typeID) const -> void* pure virtual
Public variables
- bool field_C
- eastl::sp_fixed_map<cCollectableItemsRowID, cCollectableItemsRowVector, 64> mUnlockableRows
- Stores a progression of unlockable items (for instance, all the mouths in the same row)
- eastl::sp_fixed_hash_map<cCollectableItemID, UnlockableItem, 256> mUnlockableItems
-
eastl::sp_fixed_hash_map<cCollectableItemID, uint8_
t, 256> mItemStatusInfos - Some flags.
- eastl::vector<int> mUnlocksPerLevel
- int mUnlockPoints
-
uint32_
t mItemsGroupID - float mFindPercentageLevelMultiplier
- float mGlobalFindPercentageMultiplier
- eastl::list<cCollectableItemID> mUnlockedItems
- eastl::hash_map<int, int> field_6D8C
Function documentation
bool Simulator:: cCollectableItems:: AddUnlockableItemFromProp(struct ResourceKey key,
uint32_ t categoryID,
int row,
int column,
int pageIndex)
Reads the prop file, checks the itemUnlockLevel
, itemUnlockEffect
and itemUnlockFindPercentage
properties, and calls AddUnlockableItem().
Parameters | |
---|---|
key | |
categoryID | |
row | |
column | |
pageIndex |
If itemUnlockFindPercentage is greater or equal than 1, it unlocks the item.