mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Add minetest.get_game_info
and allow reading game.conf
(#12989)
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
committed by
GitHub
parent
3fd5bff128
commit
d0a118f5b1
@@ -40,6 +40,7 @@ namespace irr { namespace scene {
|
||||
class ISceneManager;
|
||||
}}
|
||||
|
||||
struct SubgameSpec;
|
||||
struct ModSpec;
|
||||
/*
|
||||
An interface for fetching game-global definitions like tool and
|
||||
@@ -72,6 +73,7 @@ public:
|
||||
|
||||
virtual const std::vector<ModSpec> &getMods() const = 0;
|
||||
virtual const ModSpec* getModSpec(const std::string &modname) const = 0;
|
||||
virtual const SubgameSpec* getGameSpec() const { return nullptr; }
|
||||
virtual std::string getWorldPath() const { return ""; }
|
||||
virtual ModStorageDatabase *getModStorageDatabase() = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user