mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Expose dtime_s to LBM handler
This commit is contained in:
parent
aa3505a9e4
commit
37386b9c3c
5 changed files with 16 additions and 9 deletions
|
@ -95,7 +95,8 @@ struct LoadingBlockModifierDef
|
|||
|
||||
virtual ~LoadingBlockModifierDef() = default;
|
||||
|
||||
virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n){};
|
||||
virtual void trigger(ServerEnvironment *env, v3s16 p,
|
||||
MapNode n, float dtime_s) {};
|
||||
};
|
||||
|
||||
struct LBMContentMapping
|
||||
|
@ -129,7 +130,8 @@ public:
|
|||
std::string createIntroductionTimesString();
|
||||
|
||||
// Don't call this before loadIntroductionTimes() ran.
|
||||
void applyLBMs(ServerEnvironment *env, MapBlock *block, u32 stamp);
|
||||
void applyLBMs(ServerEnvironment *env, MapBlock *block,
|
||||
u32 stamp, float dtime_s);
|
||||
|
||||
// Warning: do not make this std::unordered_map, order is relevant here
|
||||
typedef std::map<u32, LBMContentMapping> lbm_lookup_map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue