#include <particles.h>
Public Member Functions | |
void | serialize (std::ostream &os, u16 protocol_ver) const |
void | deSerialize (std::istream &is, u16 protocol_ver) |
Public Member Functions inherited from CommonParticleParams | |
CommonParticleParams () | |
void | copyCommon (CommonParticleParams &to) const |
Public Attributes | |
v3f | pos |
v3f | vel |
v3f | acc |
v3f | drag |
f32 | size = 1 |
f32 | expirationtime = 1 |
ParticleParamTypes::f32Range | bounce |
ParticleParamTypes::v3fRange | jitter |
Public Attributes inherited from CommonParticleParams | |
bool | collisiondetection = false |
bool | collision_removal = false |
bool | object_collision = false |
bool | vertical = false |
ServerParticleTexture | texture |
struct TileAnimationParams | animation |
u8 | glow = 0 |
MapNode | node |
u8 | node_tile = 0 |
void ParticleParameters::deSerialize | ( | std::istream & | is, |
u16 | protocol_ver ) |
References acc, CommonParticleParams::animation, bounce, CommonParticleParams::collision_removal, CommonParticleParams::collisiondetection, ParticleParamTypes::RangedParameter< T >::deSerialize(), ServerParticleTexture::deSerialize(), TileAnimationParams::deSerialize(), deSerializeString32(), drag, expirationtime, CommonParticleParams::glow, jitter, CommonParticleParams::node, CommonParticleParams::node_tile, CommonParticleParams::object_collision, MapNode::param0, MapNode::param2, pos, readF32(), readU8(), readV3F32(), size, streamEndsBeforeParam(), ServerParticleTexture::string, CommonParticleParams::texture, vel, and CommonParticleParams::vertical.
void ParticleParameters::serialize | ( | std::ostream & | os, |
u16 | protocol_ver ) const |
References acc, CommonParticleParams::animation, bounce, CommonParticleParams::collision_removal, CommonParticleParams::collisiondetection, drag, expirationtime, CommonParticleParams::glow, jitter, CommonParticleParams::node, CommonParticleParams::node_tile, CommonParticleParams::object_collision, MapNode::param0, MapNode::param2, pos, ParticleParamTypes::RangedParameter< T >::serialize(), ServerParticleTexture::serialize(), TileAnimationParams::serialize(), serializeString32(), size, ServerParticleTexture::string, CommonParticleParams::texture, vel, CommonParticleParams::vertical, writeF32(), writeU16(), writeU8(), and writeV3F32().
v3f ParticleParameters::acc |
Referenced by deSerialize(), serialize(), and ParticleSpawner::spawnParticle().
ParticleParamTypes::f32Range ParticleParameters::bounce |
Referenced by deSerialize(), serialize(), ParticleSpawner::spawnParticle(), and Particle::step().
v3f ParticleParameters::drag |
Referenced by deSerialize(), serialize(), ParticleSpawner::spawnParticle(), and Particle::step().
f32 ParticleParameters::expirationtime = 1 |
Referenced by deSerialize(), serialize(), and ParticleSpawner::spawnParticle().
ParticleParamTypes::v3fRange ParticleParameters::jitter |
Referenced by deSerialize(), serialize(), ParticleSpawner::spawnParticle(), and Particle::step().
v3f ParticleParameters::pos |
Referenced by deSerialize(), serialize(), and ParticleSpawner::spawnParticle().
f32 ParticleParameters::size = 1 |
Referenced by deSerialize(), serialize(), ParticleSpawner::spawnParticle(), Particle::step(), and Particle::updateVertices().
v3f ParticleParameters::vel |
Referenced by deSerialize(), serialize(), and ParticleSpawner::spawnParticle().