mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-07 07:55:27 +01:00
Move client code from nodedef.h/cpp (#16615)
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
#include "craftdef.h"
|
||||
#include "content/mods.h"
|
||||
#include "database/database-dummy.h"
|
||||
#if CHECK_CLIENT_BUILD()
|
||||
#include "client/node_visuals.h"
|
||||
#endif
|
||||
|
||||
class DummyGameDef : public IGameDef {
|
||||
public:
|
||||
@@ -62,4 +65,8 @@ protected:
|
||||
NodeDefManager *m_nodedef = nullptr;
|
||||
ICraftDefManager *m_craftdef = nullptr;
|
||||
ModStorageDatabase *m_mod_storage_database = nullptr;
|
||||
|
||||
#if CHECK_CLIENT_BUILD()
|
||||
static NodeVisuals *constructNodeVisuals(ContentFeatures *f) { return new NodeVisuals(f); }
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user