From d07d7e0d0ba022d555f418e9a072d71c190ed225 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 12 Nov 2010 00:03:31 +0000 Subject: read factions.ini and add te ablity to apply faction colors to entities, read templates.ini and add te ablity to apply template settings to entities. --- src/game/base/cargo.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/game/base/cargo.h') diff --git a/src/game/base/cargo.h b/src/game/base/cargo.h index eb616a5..bee0502 100644 --- a/src/game/base/cargo.h +++ b/src/game/base/cargo.h @@ -23,15 +23,20 @@ public: void eject(core::EntityControlable *ejector, const int amount); - /* -- static functions -- */ - - static core::InfoType *cargo_infotype; + /* --- static registry functions ---------------------------------- */ static Cargo *find(const std::string & label); static bool init(); static void list(); + + static inline const core::InfoType *infotype() { + return cargo_infotype; + } + +private: + static core::InfoType *cargo_infotype; }; } // namespace game -- cgit v1.2.3