mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Attached particle spawners
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user