#include <tileanimation.h>
Classes | |
| union | [union].__unnamed0__ |
Public Member Functions | |
| void | serialize (std::ostream &os, u16 protocol_ver) const |
| void | deSerialize (std::istream &is, u16 protocol_ver) |
| void | determineParams (v2u32 texture_size, int *frame_count, int *frame_length_ms, v2u32 *frame_size) const |
| void | getTextureModifer (std::ostream &os, v2u32 texture_size, int frame) const |
| v2f | getTextureCoords (v2u32 texture_size, int frame) const |
| void | extractFirstFrame (std::string &name) const |
Public Attributes | |
| enum TileAnimationType | type = TileAnimationType::TAT_NONE |
| union | |
| void TileAnimationParams::deSerialize | ( | std::istream & | is, |
| u16 | protocol_ver ) |
References readF32(), readU16(), readU8(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.
Referenced by ItemImageDef::deSerialize(), ParticleParameters::deSerialize(), ServerParticleTexture::deSerialize(), TileDef::deSerialize(), and Client::handleCommand_AddParticleSpawner().
| void TileAnimationParams::determineParams | ( | v2u32 | texture_size, |
| int * | frame_count, | ||
| int * | frame_length_ms, | ||
| v2u32 * | frame_size ) const |
References TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.
Referenced by createAnimationFrames(), getTextureCoords(), getTextureModifer(), Particle::step(), and Particle::updateVertices().
| void TileAnimationParams::extractFirstFrame | ( | std::string & | name | ) | const |
References str_texture_modifiers_escape(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.
Referenced by ItemImageDef::serialize().
References determineParams(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.
Referenced by Particle::updateVertices().
| void TileAnimationParams::getTextureModifer | ( | std::ostream & | os, |
| v2u32 | texture_size, | ||
| int | frame ) const |
References determineParams(), TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, and type.
Referenced by createAnimationFrames().
| void TileAnimationParams::serialize | ( | std::ostream & | os, |
| u16 | protocol_ver ) const |
References TAT_SHEET_2D, TAT_VERTICAL_FRAMES, type, writeF32(), writeU16(), and writeU8().
Referenced by Server::SendAddParticleSpawner(), ItemImageDef::serialize(), ParticleParameters::serialize(), ServerParticleTexture::serialize(), and TileDef::serialize().
| enum TileAnimationType TileAnimationParams::type = TileAnimationType::TAT_NONE |
Referenced by CommonParticleParams::CommonParticleParams(), TileDef::TileDef(), createAnimationFrames(), deSerialize(), determineParams(), extractFirstFrame(), fillTileAttribs(), ParticleManager::getNodeParticleParams(), getTextureCoords(), getTextureModifer(), NodeVisuals::preUpdateTextures(), push_tile_animation_params(), push_tiledef(), read_animation_definition(), read_json_value(), ItemImageDef::reset(), serialize(), ParticleSpawner::spawnParticle(), Particle::step(), and Particle::updateVertices().