mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
a work-in-progress map modified callback interface (committing because i want to merge the fence stuff)
This commit is contained in:
parent
ab02f0aa1b
commit
0c5f580365
@ -116,13 +116,19 @@ private:
|
|||||||
Active block modifier interface
|
Active block modifier interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
class ServerEnvironment;
|
||||||
|
|
||||||
class ActiveBlockModifier
|
class ActiveBlockModifier
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ActiveBlockModifier(){};
|
ActiveBlockModifier(){};
|
||||||
virtual ~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)
|
ActiveBlockModifier stuff)
|
||||||
- Protocol version field
|
- Protocol version field
|
||||||
- Consider getting some textures from cisoun's texture pack
|
- 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
|
||||||
|
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user