pub struct Profile {
pub id: String,
pub version: String,
pub projection: Projection,
pub render_layers: Vec<String>,
pub ground_layers: Vec<String>,
pub definition_types: BTreeMap<String, Arc<Schema>>,
pub object_fields: Arc<Schema>,
pub zone_properties: Arc<Schema>,
pub layer_height: Option<u32>,
pub movement: Option<Movement>,
pub transitions: Option<Arc<Transitions>>,
pub canonical: String,
}Expand description
The game profile.
Fields§
§id: String§version: String§projection: Projection§render_layers: Vec<String>§ground_layers: Vec<String>Ground layers in profile order; each chunk stores one grid per entry.
definition_types: BTreeMap<String, Arc<Schema>>Schemas by definition type. Roles that name the same schema path share one schema.
object_fields: Arc<Schema>§zone_properties: Arc<Schema>§layer_height: Option<u32>Height units per layer: layer L sits at L × layer_height, and
tile heights stay relative to their layer. None when the profile
does not stack layers.
movement: Option<Movement>§transitions: Option<Arc<Transitions>>The terrain transitions the profile names (docs/spec/FORMAT.md
section 13), which derive edge, corner and variant tiles from
painted terrain.
canonical: StringCanonical JSON of the profile document.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Forget for Profile
impl Freeze for Profile
impl Move for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more