mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Refactor some Lua API functions in preparation for async env
This commit is contained in:
parent
e6385e2ab7
commit
56a558baf8
8 changed files with 37 additions and 45 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue