modularize loading for all possible extra data

This commit is contained in:
David Markowitz
2024-05-20 14:33:10 -07:00
parent 0464f37fab
commit 787237c930
5 changed files with 85 additions and 71 deletions

View File

@@ -122,6 +122,10 @@ uint32_t Item::GetSlot() const {
return slot;
}
std::vector<LDFBaseData*> Item::GetConfig() const {
return config;
}
std::vector<LDFBaseData*>& Item::GetConfig() {
return config;
}

View File

@@ -116,6 +116,12 @@ public:
*/
std::vector<LDFBaseData*>& GetConfig();
/**
* Returns current config info for this item, e.g. for rockets
* @return current config info for this item
*/
std::vector<LDFBaseData*> GetConfig() const;
/**
* Returns the database info for this item
* @return the database info for this item