#include <object_properties.h>
Public Member Functions | |
| ObjectProperties () | |
| std::string | dump () const |
| bool | operator== (const ObjectProperties &other) const |
| bool | operator!= (const ObjectProperties &other) const |
| bool | validate () |
| Check limits of some important properties that'd cause exceptions later on. | |
| void | serialize (std::ostream &os) const |
| void | deSerialize (std::istream &is) |
| ObjectProperties::ObjectProperties | ( | ) |
References textures.
Referenced by operator!=(), and operator==().
| 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, canRead(), collideWithObjects, collisionbox, colors, damage_texture_modifier, Pointabilities::deSerializePointabilityType(), deSerializeString16(), es_ObjectVisual, eye_height, glow, hp_max, infostream, infotext, initial_sprite_basepos, is_visible, makes_footstep_sound, mesh, nametag, nametag_bgcolor, nametag_color, nametag_fontsize, nametag_scale_z, node, NULL_BGCOLOR, OBJECTVISUAL_UNKNOWN, physical, pointable, readARGB8(), readF32(), readS8(), readU16(), readU32(), readU8(), readV2S16(), readV3F32(), rotate_selectionbox, selectionbox, shaded, show_on_minimap, spritediv, stepheight, string_to_enum(), textures, U32_MAX, use_texture_alpha, visual, visual_size, wield_item, and zoom_fov.
Referenced by GenericCAO::processMessage().
| std::string ObjectProperties::dump | ( | ) | const |
References automatic_rotate, backface_culling, breath_max, collideWithObjects, collisionbox, colors, damage_texture_modifier, enum_to_string(), es_ObjectVisual, eye_height, glow, hp_max, initial_sprite_basepos, is_visible, makes_footstep_sound, mesh, nametag, nametag_bgcolor, nametag_color, nametag_fontsize, nametag_scale_z, node, physical, pointable, rotate_selectionbox, selectionbox, shaded, show_on_minimap, spritediv, static_save, textures, Pointabilities::toStringPointabilityType(), use_texture_alpha, visual, visual_size, and zoom_fov.
|
inline |
| bool ObjectProperties::operator== | ( | const ObjectProperties & | other | ) | const |
| 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, enum_to_string(), es_ObjectVisual, eye_height, glow, hp_max, infotext, initial_sprite_basepos, is_visible, makes_footstep_sound, mesh, nametag, nametag_bgcolor, nametag_color, nametag_fontsize, nametag_scale_z, node, NULL_BGCOLOR, physical, pointable, rotate_selectionbox, selectionbox, Pointabilities::serializePointabilityType(), serializeString16(), shaded, show_on_minimap, spritediv, stepheight, textures, U32_MAX, use_texture_alpha, visual, visual_size, wield_item, writeARGB8(), writeF32(), writeS8(), writeU16(), writeU32(), writeU8(), writeV2S16(), writeV3F32(), and zoom_fov.
Referenced by UnitSAO::generateSetPropertiesCommand().
| bool ObjectProperties::validate | ( | ) |
Check limits of some important properties that'd cause exceptions later on.
Errornous values are discarded after printing a warning.
References infotext, nametag, textures, U16_MAX, warningstream, and wield_item.
Referenced by ObjectRef::l_set_nametag_attributes().
| bool ObjectProperties::automatic_face_movement_dir = false |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), and tie().
| f32 ObjectProperties::automatic_face_movement_dir_offset = 0.0f |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), and tie().
| f32 ObjectProperties::automatic_face_movement_max_rotation_per_sec = -1.0f |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), and tie().
| float ObjectProperties::automatic_rotate = 0.0f |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| bool ObjectProperties::backface_culling = true |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| u16 ObjectProperties::breath_max = 0 |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| bool ObjectProperties::collideWithObjects = true |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| std::vector<video::SColor> ObjectProperties::colors |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| std::string ObjectProperties::damage_texture_modifier = "^[brighten" |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| float ObjectProperties::eye_height = 1.625f |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| s8 ObjectProperties::glow = 0 |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| u16 ObjectProperties::hp_max = 1 |
| std::string ObjectProperties::infotext |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), tie(), and validate().
| v2s16 ObjectProperties::initial_sprite_basepos |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| bool ObjectProperties::is_visible = true |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| bool ObjectProperties::makes_footstep_sound = false |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| std::string ObjectProperties::mesh |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| std::string ObjectProperties::nametag |
| std::optional<video::SColor> ObjectProperties::nametag_bgcolor |
| video::SColor ObjectProperties::nametag_color = video::SColor(255, 255, 255, 255) |
| std::optional<u32> ObjectProperties::nametag_fontsize |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| bool ObjectProperties::nametag_scale_z = false |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| MapNode ObjectProperties::node = MapNode(CONTENT_IGNORE) |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| bool ObjectProperties::physical = false |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| PointabilityType ObjectProperties::pointable = PointabilityType::POINTABLE |
| bool ObjectProperties::rotate_selectionbox = false |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| bool ObjectProperties::shaded = true |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| bool ObjectProperties::show_on_minimap = false |
Referenced by deSerialize(), dump(), GenericCAO::processMessage(), push_object_properties(), read_object_properties(), serialize(), and tie().
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().
| bool ObjectProperties::static_save = true |
Referenced by dump(), push_object_properties(), read_object_properties(), and tie().
| f32 ObjectProperties::stepheight = 0.0f |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), and tie().
| std::vector<std::string> ObjectProperties::textures |
| bool ObjectProperties::use_texture_alpha = false |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| ObjectVisual ObjectProperties::visual = OBJECTVISUAL_SPRITE |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), tie(), and GenericCAO::visualExpiryRequired().
| std::string ObjectProperties::wield_item |
Referenced by deSerialize(), push_object_properties(), read_object_properties(), serialize(), tie(), validate(), and GenericCAO::visualExpiryRequired().
| float ObjectProperties::zoom_fov = 0.0f |
Referenced by deSerialize(), dump(), push_object_properties(), read_object_properties(), serialize(), and tie().