8 changes: 8 additions & 0 deletions src/particles.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ class Particle : public scene::ISceneNode

bool get_expired ()
{ return m_expiration < m_time; }

void updateCameraOffset(v3s16 camera_offset)
{
m_camera_offset = camera_offset;
}

private:
void updateLight(ClientEnvironment &env);
Expand All @@ -94,6 +99,7 @@ class Particle : public scene::ISceneNode
u8 m_light;
bool m_collisiondetection;
bool m_vertical;
v3s16 m_camera_offset;
};

class ParticleSpawner
Expand Down Expand Up @@ -162,4 +168,6 @@ void addNodeParticle(IGameDef* gamedef, scene::ISceneManager* smgr,
LocalPlayer *player, ClientEnvironment &env, v3s16 pos,
const TileSpec tiles[]);

void update_particles_camera_offset (v3s16 camera_offset);

#endif