Make edit mode usable; complete #11

This commit is contained in:
NGnius (Graham) committed 2025-03-15 11:03:35 -04:00
1 parent 47eb32056c
commit 6fd4d673ca
40 files changed
+5313 -2162

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ pub struct GarageSlotInfo {
}
impl GarageSlotInfo {
pub fn as_transmissible(&self) -> Typed {
pub fn as_transmissible<C>(&self) -> Typed<C> {
Typed::HashMap(vec![
(Typed::Str("name".into()), Typed::Str(self.name.clone().into())),
(Typed::Str("numberCubes".into()), Typed::Int(self.cubes as i32)),
@@ -71,7 +71,7 @@ pub struct ControlOptions {
}
impl ControlOptions {
pub fn as_transmissible(&self) -> Typed {
pub fn as_transmissible<C>(&self) -> Typed<C> {
Typed::Arr(Arr {
ty: TypePrefix::Bool, // bool
items: vec![