#include "mod_shared_gathering_nodes.h"
#include "Config.h"
#include "Log.h"
#include "ScriptMgr.h"
// v0: hello-world stub. Proves the module loads and its config flag is readable -- no gathering
// logic yet. See PLAN.md for why this needs a real core change, not just a module.
class SharedGatheringNodes_World : public WorldScript
{
public:
SharedGatheringNodes_World() : WorldScript("SharedGatheringNodes_World") { }
void OnStartup() override
{
LOG_INFO("server.loading", "mod-shared-gathering-nodes: loaded (v0 hello-world stub, enabled={}).",
sConfigMgr->GetOption("SharedGatheringNodes.Enable", true));
}
};
void AddSC_mod_shared_gathering_nodes()
{
new SharedGatheringNodes_World();
}