#[non_exhaustive]pub enum Role<'a> {
Show 23 variants
ManifestProfile,
ManifestPlane,
ProfileGroundLayer,
ProfileSchema,
ProfileTransitions,
SchemaTarget {
field: &'a str,
},
DefinitionType,
Field {
field: &'a str,
},
ZoneParent,
DefaultZone,
GroundPalette {
layer: &'a str,
},
ZonePalette,
ChunkPlane,
Proto,
Layer,
PortalPlane,
PortalAnchor {
implicit_plane: bool,
},
StairwellStep,
TerrainLayer,
TerrainProto,
TransitionLayer,
TransitionBlend,
TransitionTile,
}Expand description
Which kind of reference it is: what holds it, and what it is for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ManifestProfile
The manifest’s profile path, to the profile document.
ManifestPlane
An entry of the manifest’s planes, to a plane.
ProfileGroundLayer
A profile ground_layers entry, to the render layer it must be.
ProfileSchema
A schema path of the profile (a definition type’s schema,
object_fields or zone_properties), to the schema document.
ProfileTransitions
The profile’s transitions path, to the transitions document.
SchemaTarget
A reference field type of a schema, to its definition type.
field is the field’s path in the schema: names joined by .,
with [] for a list’s items, as in loot.entries[].item.
DefinitionType
A definition’s type, to the definition type its directory
names.
Field
A value of a schema reference field: of a definition’s fields,
an object’s fields or a zone’s properties. field is the
field’s path in the schema, as for Role::SchemaTarget; the
value’s span tells which list item holds it.
ZoneParent
A zone’s parent.
DefaultZone
A plane’s default_zone.
GroundPalette
An entry of a chunk’s ground grid palette for the ground layer
layer, to the prototype it paints.
ZonePalette
An entry of a chunk’s zone grid palette.
ChunkPlane
A chunk’s plane, which names the plane the chunk belongs to.
Proto
An object’s proto.
Layer
An object’s layer, to a render layer.
PortalPlane
A portal’s plane.
PortalAnchor
A portal’s anchor. When the portal omits its plane,
implicit_plane is true, the target’s plane is the portal’s own,
and the span is the anchor’s: no plane is written.
StairwellStep
A stairwell step’s proto.
TerrainLayer
The transitions document’s terrain layer, to a ground layer.
TerrainProto
An entry of a terrain’s protos.
TransitionLayer
A transition’s layer, to the ground layer it draws into.
TransitionBlend
An entry of a transition’s with, to a terrain.
TransitionTile
A prototype of a transition’s tiles.