This commit is contained in:
parent
c5df576dde
commit
a9075d7ef3
@ -18,6 +18,12 @@ namespace PkmnLib::Library {
|
|||||||
explicit NatureLibrary(uint8_t size = 32)
|
explicit NatureLibrary(uint8_t size = 32)
|
||||||
: _items(Arbutils::Collections::Dictionary<Arbutils::CaseInsensitiveConstString, const Nature*>(size)) {}
|
: _items(Arbutils::Collections::Dictionary<Arbutils::CaseInsensitiveConstString, const Nature*>(size)) {}
|
||||||
|
|
||||||
|
~NatureLibrary(){
|
||||||
|
for (auto& kv : _items){
|
||||||
|
delete kv.second;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
inline void LoadNature(const Arbutils::CaseInsensitiveConstString& name, const Nature* nature) {
|
inline void LoadNature(const Arbutils::CaseInsensitiveConstString& name, const Nature* nature) {
|
||||||
_items.Insert(name, nature);
|
_items.Insert(name, nature);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user