Peoplemon  0.1.0
Peoplemon 3 game source documentation
Item.hpp
Go to the documentation of this file.
1 #ifndef CORE_COMPONENTS_ITEM_HPP
2 #define CORE_COMPONENTS_ITEM_HPP
3 
4 #include <Core/Items/Id.hpp>
5 
6 namespace core
7 {
8 namespace component
9 {
17 class Item {
18 public:
24  Item(item::Id id);
25 
30  item::Id id() const;
31 
32 private:
33  const item::Id item;
34 };
35 
36 } // namespace component
37 } // namespace core
38 
39 #endif
Id
Represents an item in its simplist form.
Definition: Id.hpp:24
Core classes and functionality for both the editor and game.
Add this component to an entity to make it give an item when interacted with. On interact the owning ...
Definition: Item.hpp:17
Item(item::Id id)
Construct a new Item component.
Definition: Item.cpp:7
item::Id id() const
Returns the item id of this item entity.
Definition: Item.cpp:10