pub struct AreaLighting {
pub fixture: Fixture,
pub min_light: u8,
}Expand description
A per-area supplemental-lighting declaration (DSL v0.5, spec-0010). Its
presence puts the area on the relight path: the compiler guarantees every
reachable walkable cell reaches min_light by placing fixtures, or fails
with DW0211 if it cannot.
Fields§
§fixture: FixtureThe fixture the relight pass places.
min_light: u8The minimum block+sky light guaranteed on reachable walkable cells
(1..=14, default 7). Range-checked (DW0196).
Trait Implementations§
Source§impl Clone for AreaLighting
impl Clone for AreaLighting
impl Copy for AreaLighting
Source§impl Debug for AreaLighting
impl Debug for AreaLighting
Source§impl<'de> Deserialize<'de> for AreaLighting
impl<'de> Deserialize<'de> for AreaLighting
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
impl Eq for AreaLighting
Source§impl JsonSchema for AreaLighting
impl JsonSchema for AreaLighting
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 AreaLighting
impl PartialEq for AreaLighting
Source§impl Serialize for AreaLighting
impl Serialize for AreaLighting
impl StructuralPartialEq for AreaLighting
Auto Trait Implementations§
impl Freeze for AreaLighting
impl RefUnwindSafe for AreaLighting
impl Send for AreaLighting
impl Sync for AreaLighting
impl Unpin for AreaLighting
impl UnsafeUnpin for AreaLighting
impl UnwindSafe for AreaLighting
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