aboutsummaryrefslogtreecommitdiff
path: root/src/script/scripting_game.cpp
Commit message (Expand)AuthorAge
* Add Lua interface to HTTPFetchRequestJeija2016-02-22
* Add LuaSecureRandomest312015-11-08
* Improve Script CPP API diagnosticskwolekr2015-08-05
* Add AreaStore data structureest312015-07-27
* Add mod securityShadowNinja2015-05-16
* Add support for the PCG32 PRNG algo (and associated script APIs)kwolekr2015-03-22
* Use "core" namespace internallyShadowNinja2014-05-08
* Organize builtin into subdirectoriesShadowNinja2014-05-07
* Add proper lua api deprecated handlingsapier2014-04-29
* Remove dependency on marshal and many other async changesShadowNinja2014-04-27
* Add Settings interface for LuaPilzAdam2013-09-10
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
pan> class IItemDefManager; class NodeDefManager; class ICraftDefManager; class ITextureSource; class IShaderSource; class IRollbackManager; class EmergeManager; class Camera; class ModChannel; class ModMetadata; namespace irr { namespace scene { class IAnimatedMesh; class ISceneManager; }} struct ModSpec; /* An interface for fetching game-global definitions like tool and mapnode properties */ class IGameDef { public: // These are thread-safe IF they are not edited while running threads. // Thus, first they are set up and then they are only read. virtual IItemDefManager* getItemDefManager()=0; virtual const NodeDefManager* getNodeDefManager()=0; virtual ICraftDefManager* getCraftDefManager()=0; // Used for keeping track of names/ids of unknown nodes virtual u16 allocateUnknownNodeId(const std::string &name)=0; // Only usable on the server, and NOT thread-safe. It is usable from the // environment thread. virtual IRollbackManager* getRollbackManager() { return NULL; } // Shorthands IItemDefManager *idef() { return getItemDefManager(); } const NodeDefManager *ndef() { return getNodeDefManager(); } ICraftDefManager *cdef() { return getCraftDefManager(); } IRollbackManager *rollback() { return getRollbackManager(); } virtual const std::vector<ModSpec> &getMods() const = 0; virtual const ModSpec* getModSpec(const std::string &modname) const = 0; virtual std::string getWorldPath() const { return ""; } virtual std::string getModStoragePath() const = 0; virtual bool registerModStorage(ModMetadata *storage) = 0; virtual void unregisterModStorage(const std::string &name) = 0; virtual bool joinModChannel(const std::string &channel) = 0; virtual bool leaveModChannel(const std::string &channel) = 0; virtual bool sendModChannelMessage(const std::string &channel, const std::string &message) = 0; virtual ModChannel *getModChannel(const std::string &channel) = 0; };