mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Add generic IPC mechanism between Lua envs
This commit is contained in:
parent
06907aa99b
commit
f1a436619f
12 changed files with 191 additions and 19 deletions
|
@ -34,19 +34,19 @@ class Camera;
|
|||
class ModChannel;
|
||||
class ModStorage;
|
||||
class ModStorageDatabase;
|
||||
struct SubgameSpec;
|
||||
struct ModSpec;
|
||||
struct ModIPCStore;
|
||||
|
||||
namespace irr::scene {
|
||||
class IAnimatedMesh;
|
||||
class ISceneManager;
|
||||
}
|
||||
|
||||
struct SubgameSpec;
|
||||
struct ModSpec;
|
||||
/*
|
||||
An interface for fetching game-global definitions like tool and
|
||||
mapnode properties
|
||||
*/
|
||||
|
||||
class IGameDef
|
||||
{
|
||||
public:
|
||||
|
@ -63,6 +63,9 @@ public:
|
|||
// environment thread.
|
||||
virtual IRollbackManager* getRollbackManager() { return NULL; }
|
||||
|
||||
// Only usable on server.
|
||||
virtual ModIPCStore *getModIPCStore() { return nullptr; }
|
||||
|
||||
// Shorthands
|
||||
// TODO: these should be made const-safe so that a const IGameDef* is
|
||||
// actually usable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue