1
0
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:
cx384
2025-11-08 21:49:01 +01:00
committed by GitHub
parent 232c833af4
commit 98295cf839
27 changed files with 880 additions and 789 deletions

View File

@@ -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
};