summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h
index e32b15dbb..ac290f932 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -113,6 +113,25 @@ private:
};
/*
+ Active block modifier interface
+*/
+
+class ServerEnvironment;
+
+class ActiveBlockModifier
+{
+public:
+ ActiveBlockModifier(){};
+ virtual ~ActiveBlockModifier(){};
+
+ virtual u32 getTriggerContentCount(){ return 1;}
+ virtual u8 getTriggerContent(u32 i) = 0;
+ virtual float getActiveInterval() = 0;
+ virtual u32 getActiveChance() = 0;
+ virtual void triggerEvent(ServerEnvironment *env, v3s16 p) = 0;
+};
+
+/*
The server-side environment.
This is not thread-safe. Server uses an environment mutex.