Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/cargo.h')
-rw-r--r--src/game/base/cargo.h11
1 files changed, 8 insertions, 3 deletions
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