pub struct StealthZone {
pub anchor: AnchorId,
pub extent: [u32; 3],
}Expand description
A stealth “shadow” region (DSL v0.6, spec-0014): an axis-aligned box centred
on anchor, extending extent blocks along each axis (so the box spans
anchor ± extent). Presented in-world via dark cells but judged purely by
region membership, so the check is deterministic and provable.
Fields§
§anchor: AnchorIdThe prefab anchor at the centre of the zone box.
extent: [u32; 3]Half-extents [x, y, z] in blocks from the anchor (each component ≥ 0);
the zone AABB is [anchor - extent, anchor + extent].
Trait Implementations§
Source§impl Clone for StealthZone
impl Clone for StealthZone
Source§impl Debug for StealthZone
impl Debug for StealthZone
Source§impl<'de> Deserialize<'de> for StealthZone
impl<'de> Deserialize<'de> for StealthZone
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for StealthZone
impl JsonSchema for StealthZone
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StealthZone
impl PartialEq for StealthZone
Source§impl Serialize for StealthZone
impl Serialize for StealthZone
impl StructuralPartialEq for StealthZone
Auto Trait Implementations§
impl Freeze for StealthZone
impl RefUnwindSafe for StealthZone
impl Send for StealthZone
impl Sync for StealthZone
impl Unpin for StealthZone
impl UnsafeUnpin for StealthZone
impl UnwindSafe for StealthZone
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