Skip to main content

ToLayer

Trait ToLayer 

Source
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§

Source

fn to_layer(&self, _parent: &Bmd) -> Result<String>

Converts this data structure to Terry .layer XML entity definitions.

§Parameters
  • parent: Reference to the parent Bmd for accessing cross-referenced data
§Returns
  • Ok(String): XML entity definitions for this data list
  • Err(_): Conversion error
§Default Implementation

Returns an empty string (no entities exported).

Implementors§