diff --git a/logicworld-subassembly/src/lw.rs b/logicworld-subassembly/src/lw.rs index aeecf9b..c337d3b 100644 --- a/logicworld-subassembly/src/lw.rs +++ b/logicworld-subassembly/src/lw.rs @@ -145,6 +145,7 @@ impl CircuitBoard { return custom_data; } } + pub struct Label<'a> { text: &'a str, color: Vec, @@ -225,6 +226,18 @@ impl<'a> Label<'a> { } } +pub struct Mount { + height: Int, +} +impl Mount { + pub fn new(height: Int) -> Self { + Self { height } + } + pub fn custom_data(&self) -> Vec { + return Vec::from(self.height.to_le_bytes()); + } +} + impl BinarySerializable for Vec { fn write_to(&self, writer: &mut W) -> io::Result<()> { writer.write_all(&(self.len() as Int).to_le_bytes())?;