Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index 09839c8..ae2585d 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -165,6 +165,11 @@ public:
inline Inventory *inventory() {
return entity_inventory;
}
+
+ /// entity info
+ inline const Info *info() const {
+ return entity_info;
+ }
/// entity menus
inline Menus &menus() {
@@ -333,9 +338,18 @@ public:
/// erase an entity from the registry and delete it
static void erase(unsigned int entity_id);
+ /// print the list header
+ static void list_header();
+
+ /// list the entity registry
+ static void list(const Entity *entity);
+
/// list the entity registry
static void list();
+ /// clear the entity registry
+ static void clear();
+
/// the entity registry
static inline Registry & registry() {
return entity_registry;