Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | List of all members
core::component::Item Class Reference

Add this component to an entity to make it give an item when interacted with. On interact the owning entity is removed. More...

#include <Item.hpp>

Public Member Functions

 Item (item::Id id)
 Construct a new Item component. More...
 
item::Id id () const
 Returns the item id of this item entity. More...
 

Detailed Description

Add this component to an entity to make it give an item when interacted with. On interact the owning entity is removed.

Definition at line 17 of file Item.hpp.

Constructor & Destructor Documentation

◆ Item()

core::component::Item::Item ( item::Id  id)

Construct a new Item component.

Parameters
idThe item to give on interaction

Definition at line 7 of file Item.cpp.

Member Function Documentation

◆ id()

item::Id core::component::Item::id ( ) const

Returns the item id of this item entity.

Definition at line 10 of file Item.cpp.


The documentation for this class was generated from the following files: