diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-24 20:05:30 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-24 20:05:30 +0300 |
commit | 0c5f58036531e85ab4c0c7d9ad75466c74aaafe7 (patch) | |
tree | 5a73c17798abf990995ffda172113c3848a5d2c7 /src/environment.h | |
parent | ab02f0aa1b852391db89a1384f5c7271271196a5 (diff) | |
download | minetest-0c5f58036531e85ab4c0c7d9ad75466c74aaafe7.tar.gz minetest-0c5f58036531e85ab4c0c7d9ad75466c74aaafe7.tar.bz2 minetest-0c5f58036531e85ab4c0c7d9ad75466c74aaafe7.zip |
a work-in-progress map modified callback interface (committing because i want to merge the fence stuff)
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/environment.h b/src/environment.h index 8993b8e87..ac290f932 100644 --- a/src/environment.h +++ b/src/environment.h @@ -116,13 +116,19 @@ private: Active block modifier interface */ +class ServerEnvironment; + class ActiveBlockModifier { public: ActiveBlockModifier(){}; virtual ~ActiveBlockModifier(){}; - //TODO - //virtual void + + 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; }; /* |