mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 23:50:22 +02:00
Server: delegate mod management & config to ServerModConfiguration (#7131)
* Server: delegate mod management & config to ServerModConfiguration (rename it to ServerModManager) * Use c++11 range based loops * Add unittests + experimental/default mod as a test case to permit testing mod loading in future tests
This commit is contained in:
@ -61,6 +61,7 @@ class ServerEnvironment;
|
||||
struct SimpleSoundSpec;
|
||||
struct CloudParams;
|
||||
class ServerThread;
|
||||
class ServerModManager;
|
||||
|
||||
enum ClientDeletionReason {
|
||||
CDR_LEAVE,
|
||||
@ -268,7 +269,7 @@ public:
|
||||
NodeDefManager* getWritableNodeDefManager();
|
||||
IWritableCraftDefManager* getWritableCraftDefManager();
|
||||
|
||||
virtual const std::vector<ModSpec> &getMods() const { return m_mods; }
|
||||
virtual const std::vector<ModSpec> &getMods() const;
|
||||
virtual const ModSpec* getModSpec(const std::string &modname) const;
|
||||
void getModNames(std::vector<std::string> &modlist);
|
||||
std::string getBuiltinLuaPath();
|
||||
@ -541,6 +542,7 @@ private:
|
||||
EventManager *m_event;
|
||||
|
||||
// Mods
|
||||
std::unique_ptr<ServerModManager> m_modmgr;
|
||||
std::vector<ModSpec> m_mods;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user