Skip to content
Snippets Groups Projects
Commit 0c5f5803 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

a work-in-progress map modified callback interface (committing because i want...

a work-in-progress map modified callback interface (committing because i want to merge the fence stuff)
parent ab02f0aa
No related branches found
No related tags found
No related merge requests found
......@@ -116,13 +116,19 @@ class ActiveBlockList
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;
};
/*
......
......@@ -310,6 +310,8 @@ Stuff to do before release:
ActiveBlockModifier stuff)
- Protocol version field
- Consider getting some textures from cisoun's texture pack
- Add a long step function to objects that is called with the time
difference when block activates
======================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment