diff options
author | sfan5 <sfan5@live.de> | 2022-04-09 14:47:59 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-02 20:54:55 +0200 |
commit | 56a558baf8ef43810014347ae624cb4ef70b6aa3 (patch) | |
tree | 071640a50dba48bc5a28d07d782b56923aa690c3 /src/gamedef.h | |
parent | e6385e2ab74af7b01163ea91d4e3cfd5dfe6552e (diff) | |
download | minetest-56a558baf8ef43810014347ae624cb4ef70b6aa3.tar.gz minetest-56a558baf8ef43810014347ae624cb4ef70b6aa3.tar.bz2 minetest-56a558baf8ef43810014347ae624cb4ef70b6aa3.zip |
Refactor some Lua API functions in preparation for async env
Diffstat (limited to 'src/gamedef.h')
-rw-r--r-- | src/gamedef.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gamedef.h b/src/gamedef.h index 8a9246da2..45b9c4750 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -63,6 +63,8 @@ public: virtual IRollbackManager* getRollbackManager() { return NULL; } // Shorthands + // TODO: these should be made const-safe so that a const IGameDef* is + // actually usable IItemDefManager *idef() { return getItemDefManager(); } const NodeDefManager *ndef() { return getNodeDefManager(); } ICraftDefManager *cdef() { return getCraftDefManager(); } |