mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Attached particle spawners
This commit is contained in:
parent
0b27a70b29
commit
c9e7a27eeb
13 changed files with 131 additions and 36 deletions
|
@ -188,6 +188,15 @@ public:
|
|||
{ return 0; }
|
||||
virtual ItemStack getWieldedItem() const;
|
||||
virtual bool setWieldedItem(const ItemStack &item);
|
||||
inline void attachParticleSpawner(u32 id)
|
||||
{
|
||||
m_attached_particle_spawners.insert(id);
|
||||
}
|
||||
inline void detachParticleSpawner(u32 id)
|
||||
{
|
||||
m_attached_particle_spawners.erase(id);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Number of players which know about this object. Object won't be
|
||||
|
@ -242,6 +251,7 @@ protected:
|
|||
|
||||
ServerEnvironment *m_env;
|
||||
v3f m_base_position;
|
||||
UNORDERED_SET<u32> m_attached_particle_spawners;
|
||||
|
||||
private:
|
||||
// Used for creating objects based on type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue