pub struct Mark {
pub anchor: AnchorId,
pub offset: [i32; 3],
}Expand description
A mark (spec-0066): an anchor and an integer block offset from it, the one declaration of a point the campaign places relative to a piece.
Its cell is the anchor’s resolved cell plus offset, in world axes after
the piece’s placement. It is what a body stands on (Npc::offset,
Actor::offset), where a walk ends (Verb::MoveNpc, Verb::MoveActor,
Verb::Teleport), where the cast ledger says a body is
(CastPlace::Mark), where a sound plays (SoundAt::Anchor), and every
camera position in a shot: a dolly waypoint (path), an aim target
(look_at) and an anchor subject (subject). The roles are fields; the
type is one.
A mark’s cell lies inside the placed piece its anchor belongs to (DW0897):
an offset says where beside this place, never which place.
Fields§
§anchor: AnchorIdThe anchor the mark is relative to.
offset: [i32; 3]Integer [x, y, z] block offset from the anchor (default [0, 0, 0]).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mark
impl<'de> Deserialize<'de> for Mark
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Mark
Source§impl JsonSchema for Mark
impl JsonSchema for Mark
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more