|
|
| DestructionMaterial (const toml::table &table, Handle< Schema > schema={}) |
| auto | type () const -> std::string_view override |
|
auto | get () const -> toml::table |
|
auto | density () const noexcept -> float |
| | kg/m3; drives voxel mass through massPerVoxel()
|
|
auto | toughness () const noexcept -> float |
| | kJ/m3 it takes to break the material
|
|
auto | hardness () const noexcept -> physics::Hardness |
| | Damage that breaks only softer tiers never breaks this material.
|
|
auto | fracturePatterh () const noexcept -> physics::FracturePattern |
|
auto | fractureProfile () const noexcept -> physics::PackedFractureProfile |
|
auto | structuralStrength () const noexcept -> float |
| | Pascals.
|
|
auto | destructible () const noexcept -> bool |
| | False means voxels of this material never break, whatever hits them.
|
|
auto | flammable () const noexcept -> bool |
|
auto | burnRate () const noexcept -> float |
|
| Data (const toml::table &table, Handle< Schema > schema={}) |
|
| Data (const toml::table &table, Handle< Schema > schema, KeepAllKeysTag) |
| | Stores the schema handle for round-trip serialization but runs free-form buildRoot, keeping every TOML key.
|
|
auto | operator[] (std::string_view k) -> DataValue & |
|
auto | operator[] (std::string_view k) const -> const DataValue & |
|
auto | contains (std::string_view k) const -> bool |
|
auto | root () const -> const DataValue & |
|
auto | schema () const -> const Handle< Schema > & |
| auto | serialize (SaveMode mode) const -> std::vector< uint8_t > override |
| virtual void | reload (const toml::table &table) |
| | Re-parses the asset contents in place.
|
|
| Asset (const Asset &)=delete |
|
auto | operator= (const Asset &) -> Asset &=delete |
|
auto | refCount () const noexcept -> uint32_t |