We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd3ec2c commit 042316eCopy full SHA for 042316e
src/logic/vm/buildings.rs
@@ -268,12 +268,14 @@ macro_rules! borrow_data {
268
pub(super) use borrow_data;
269
270
#[derive(Debug, IntoStaticStr)]
271
+#[non_exhaustive]
272
pub enum BuildingData {
273
Processor(Box<Processor>),
274
Memory(Box<[f64]>),
275
Message(U16String),
276
Switch(bool),
277
Unknown { senseable_config: Option<LValue> },
278
+ Custom(Object),
279
}
280
281
impl BuildingData {
src/logic/vm/instructions.rs
@@ -805,6 +805,8 @@ impl SimpleInstructionTrait for Sensor {
805
_ => setnull!(),
806
},
807
808
+ BuildingData::Custom(_) => setnull!(),
809
+
810
BuildingData::Processor(_) => unreachable!(),
811
812
),
0 commit comments