1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Move client code out of ItemDefManager (#15967)

This commit is contained in:
cx384 2025-04-04 18:58:14 +02:00 committed by GitHub
parent a6d4cd7c15
commit 52b974184d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 195 additions and 163 deletions

View file

@ -55,6 +55,7 @@ struct MeshMakeData;
struct MinimapMapblock;
struct PlayerControl;
struct PointedThing;
struct ItemVisualsManager;
namespace con {
class IConnection;
@ -118,6 +119,7 @@ public:
ISoundManager *sound,
MtEventManager *event,
RenderingEngine *rendering_engine,
ItemVisualsManager *item_visuals,
ELoginRegister allow_login_or_register
);
@ -383,6 +385,8 @@ public:
const std::string* getModFile(std::string filename);
ModStorageDatabase *getModStorageDatabase() override { return m_mod_storage_database; }
ItemVisualsManager *getItemVisualsManager() { return m_item_visuals_manager; }
// Migrates away old files-based mod storage if necessary
void migrateModStorage();
@ -480,6 +484,7 @@ private:
ISoundManager *m_sound;
MtEventManager *m_event;
RenderingEngine *m_rendering_engine;
ItemVisualsManager *m_item_visuals_manager;
std::unique_ptr<MeshUpdateManager> m_mesh_update_manager;