Implements outlines for ItemLibrary, MoveLibrary and implements NatureLibrary.
This commit is contained in:
1
src/Library/Items/Item.cpp
Normal file
1
src/Library/Items/Item.cpp
Normal file
@@ -0,0 +1 @@
|
||||
#include "Item.hpp"
|
||||
9
src/Library/Items/Item.hpp
Normal file
9
src/Library/Items/Item.hpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef PKMNLIB_ITEM_HPP
|
||||
#define PKMNLIB_ITEM_HPP
|
||||
|
||||
#include <Library/Items/Item.hpp>
|
||||
namespace PkmnLib::Library {
|
||||
class Item : public CreatureLib::Library::Item {};
|
||||
}
|
||||
|
||||
#endif // PKMNLIB_ITEM_HPP
|
||||
1
src/Library/Items/ItemLibrary.cpp
Normal file
1
src/Library/Items/ItemLibrary.cpp
Normal file
@@ -0,0 +1 @@
|
||||
#include "ItemLibrary.hpp"
|
||||
19
src/Library/Items/ItemLibrary.hpp
Normal file
19
src/Library/Items/ItemLibrary.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef PKMNLIB_ITEMLIBRARY_HPP
|
||||
#define PKMNLIB_ITEMLIBRARY_HPP
|
||||
|
||||
#include <Library/ItemLibrary.hpp>
|
||||
#include "Item.hpp"
|
||||
namespace PkmnLib::Library {
|
||||
class ItemLibrary : public CreatureLib::Library::ItemLibrary {
|
||||
public:
|
||||
const Item* GetItem(const std::string& name) const {
|
||||
return reinterpret_cast<const Item*>(CreatureLib::Library::ItemLibrary::GetItem(name));
|
||||
}
|
||||
const Item* operator[](const std::string& name) const { return GetItem(name); }
|
||||
void LoadItem(const std::string& name, const Item* item) {
|
||||
CreatureLib::Library::ItemLibrary::LoadItem(name, item);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // PKMNLIB_ITEMLIBRARY_HPP
|
||||
Reference in New Issue
Block a user