Expand description
Building and entity property definitions for BMD files.
This module defines the Properties structure containing various properties
that control building behavior, gameplay mechanics, and rendering settings.
§Property Categories
- State:
on_fire,start_disabled,starting_damage_unary - Gameplay:
weak_point,ai_breachable,indestructible,dockable,toggleable - Rendering:
lite,cast_shadows,clamp_to_surface,include_in_fog - Strategic:
key_building,key_building_use_fort,settlement_level_configurable - Misc:
dont_merge_building,is_prop_in_outfield,hide_tooltip,tint_inherit_from_parent
§Supported Versions
- Version 4: Early format
- Version 6: Mid format
- Version 7: Enhanced format
- Version 11: Current format
§Usage
ⓘ
use rpfm_lib::files::bmd::common::properties::Properties;
use rpfm_lib::files::Decodeable;
let properties = Properties::decode(&mut reader, &None)?;
println!("Building ID: {}", properties.building_id());
if *properties.indestructible() {
println!("This building cannot be destroyed");
}Structs§
- Properties
- Building and entity properties controlling behavior and rendering.