#include <object_properties.h>
Public Member Functions | |
ObjectProperties () | |
std::string | dump () |
void | serialize (std::ostream &os) const |
void | deSerialize (std::istream &is) |
Public Attributes | |
u16 | hp_max = 1 |
u16 | breath_max = 0 |
bool | physical = false |
bool | collideWithObjects = true |
aabb3f | collisionbox = aabb3f(-0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f) |
aabb3f | selectionbox = aabb3f(-0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f) |
bool | pointable = true |
std::string | visual = "sprite" |
std::string | mesh = "" |
v3f | visual_size = v3f(1, 1, 1) |
std::vector< std::string > | textures |
std::string | damage_texture_modifier = "^[brighten" |
std::vector< video::SColor > | colors |
v2s16 | spritediv = v2s16(1, 1) |
v2s16 | initial_sprite_basepos |
bool | is_visible = true |
bool | makes_footstep_sound = false |
f32 | stepheight = 0.0f |
float | automatic_rotate = 0.0f |
bool | automatic_face_movement_dir = false |
f32 | automatic_face_movement_dir_offset = 0.0f |
bool | backface_culling = true |
s8 | glow = 0 |
std::string | nametag = "" |
video::SColor | nametag_color = video::SColor(255, 255, 255, 255) |
Optional< video::SColor > | nametag_bgcolor = nullopt |
f32 | automatic_face_movement_max_rotation_per_sec = -1.0f |
std::string | infotext |
std::string | wield_item |
For dropped items, this contains item information. More... | |
bool | static_save = true |
float | eye_height = 1.625f |
float | zoom_fov = 0.0f |
bool | use_texture_alpha = false |
bool | shaded = true |
bool | show_on_minimap = false |
void ObjectProperties::deSerialize | ( | std::istream & | is | ) |
References automatic_face_movement_dir, automatic_face_movement_dir_offset, automatic_face_movement_max_rotation_per_sec, automatic_rotate, backface_culling, breath_max, collideWithObjects, collisionbox, colors, damage_texture_modifier, deSerializeString16(), eye_height, glow, hp_max, infotext, initial_sprite_basepos, is_visible, makes_footstep_sound, mesh, nametag, nametag_bgcolor, nametag_color, NULL_BGCOLOR, nullopt, physical, pointable, readARGB8(), readF32(), readS8(), readU16(), readU32(), readU8(), readV2S16(), readV3F32(), selectionbox, shaded, show_on_minimap, spritediv, stepheight, textures, use_texture_alpha, visual, visual_size, wield_item, and zoom_fov.
Referenced by GenericCAO::processMessage().
std::string ObjectProperties::dump | ( | ) |
References automatic_rotate, backface_culling, breath_max, collideWithObjects, collisionbox, colors, damage_texture_modifier, eye_height, glow, hp_max, initial_sprite_basepos, is_visible, makes_footstep_sound, mesh, nametag, nametag_bgcolor, nametag_color, physical, pointable, PP, PP2, selectionbox, shaded, show_on_minimap, spritediv, static_save, textures, use_texture_alpha, visual, visual_size, and zoom_fov.
void ObjectProperties::serialize | ( | std::ostream & | os | ) | const |
References automatic_face_movement_dir, automatic_face_movement_dir_offset, automatic_face_movement_max_rotation_per_sec, automatic_rotate, backface_culling, breath_max, collideWithObjects, collisionbox, colors, damage_texture_modifier, eye_height, glow, hp_max, infotext, initial_sprite_basepos, is_visible, makes_footstep_sound, mesh, nametag, nametag_bgcolor, nametag_color, NULL_BGCOLOR, physical, pointable, selectionbox, serializeString16(), shaded, show_on_minimap, spritediv, stepheight, textures, use_texture_alpha, Optional< T >::value(), visual, visual_size, wield_item, writeARGB8(), writeF32(), writeS8(), writeU16(), writeU8(), writeV2S16(), writeV3F32(), and zoom_fov.
Referenced by UnitSAO::generateSetPropertiesCommand().
bool ObjectProperties::automatic_face_movement_dir = false |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), LuaEntitySAO::step(), and GenericCAO::step().
f32 ObjectProperties::automatic_face_movement_dir_offset = 0.0f |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), LuaEntitySAO::step(), and GenericCAO::step().
f32 ObjectProperties::automatic_face_movement_max_rotation_per_sec = -1.0f |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), LuaEntitySAO::step(), and GenericCAO::step().
float ObjectProperties::automatic_rotate = 0.0f |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and GenericCAO::step().
bool ObjectProperties::backface_culling = true |
u16 ObjectProperties::breath_max = 0 |
bool ObjectProperties::collideWithObjects = true |
Referenced by PlayerSAO::PlayerSAO(), deSerialize(), dump(), GenericCAO::getCollisionBox(), LuaEntitySAO::getCollisionBox(), PlayerSAO::getCollisionBox(), GenericCAO::getLightPosition(), GenericCAO::processMessage(), push_object_properties(), read_object_properties(), serialize(), LuaEntitySAO::step(), PlayerSAO::step(), and GenericCAO::step().
std::vector<video::SColor> ObjectProperties::colors |
std::string ObjectProperties::damage_texture_modifier = "^[brighten" |
float ObjectProperties::eye_height = 1.625f |
s8 ObjectProperties::glow = 0 |
u16 ObjectProperties::hp_max = 1 |
std::string ObjectProperties::infotext |
v2s16 ObjectProperties::initial_sprite_basepos |
Referenced by deSerialize(), dump(), GenericCAO::processMessage(), push_object_properties(), read_object_properties(), and serialize().
bool ObjectProperties::is_visible = true |
Referenced by PlayerSAO::PlayerSAO(), GenericCAO::addToScene(), deSerialize(), dump(), PlayerSAO::getPropertyPacket(), GenericCAO::getSelectionBox(), LuaEntitySAO::getSelectionBox(), PlayerSAO::getSelectionBox(), push_object_properties(), read_object_properties(), serialize(), and GenericCAO::visualExpiryRequired().
bool ObjectProperties::makes_footstep_sound = false |
std::string ObjectProperties::mesh = "" |
std::string ObjectProperties::nametag = "" |
video::SColor ObjectProperties::nametag_color = video::SColor(255, 255, 255, 255) |
bool ObjectProperties::physical = false |
bool ObjectProperties::pointable = true |
bool ObjectProperties::shaded = true |
bool ObjectProperties::show_on_minimap = false |
bool ObjectProperties::static_save = true |
Referenced by dump(), LuaEntitySAO::isStaticAllowed(), push_object_properties(), and read_object_properties().
f32 ObjectProperties::stepheight = 0.0f |
std::vector<std::string> ObjectProperties::textures |
bool ObjectProperties::use_texture_alpha = false |
std::string ObjectProperties::visual = "sprite" |
Referenced by PlayerSAO::PlayerSAO(), GenericCAO::addToScene(), deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), GenericCAO::setNodeLight(), GenericCAO::updateMeshCulling(), GenericCAO::updateTexturePos(), GenericCAO::updateTextures(), and GenericCAO::visualExpiryRequired().
std::string ObjectProperties::wield_item |
For dropped items, this contains item information.
Referenced by GenericCAO::addToScene(), deSerialize(), push_object_properties(), read_object_properties(), serialize(), and GenericCAO::visualExpiryRequired().
float ObjectProperties::zoom_fov = 0.0f |