pub trait ToLayer {
// Provided method
fn to_layer(&self, _parent: &Bmd) -> Result<String> { ... }
}Expand description
Trait for converting BMD data structures to Terry .layer XML format.
This trait is implemented by all BMD data list types to enable export to Creative Assembly’s Terry map editor format. Each implementation converts its data to XML entity definitions that can be imported into Terry.
Provided Methods§
Sourcefn to_layer(&self, _parent: &Bmd) -> Result<String>
fn to_layer(&self, _parent: &Bmd) -> Result<String>
Converts this data structure to Terry .layer XML entity definitions.
§Parameters
parent: Reference to the parentBmdfor accessing cross-referenced data
§Returns
Ok(String): XML entity definitions for this data listErr(_): Conversion error
§Default Implementation
Returns an empty string (no entities exported).