add module system and move sensor into core with it

This commit is contained in:
iris committed 2025-09-24 16:11:39 -04:00
1 parent 2adf7a43a1
commit 26c248dcba
13 files changed
+515 -342

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
use std::ops::{Index, IndexMut};
use crate::{
layout::{SenseShape, UiRegion},
layout::UiRegion,
render::{Primitive, PrimitiveHandle, Primitives},
util::{HashMap, Id},
util::Id,
};
struct LayerNode {
@@ -26,10 +26,10 @@ pub struct Layers {
vec: Vec<LayerNode>,
}
/// TODO: this can be replaced with Primitives itself atm
#[derive(Default)]
pub struct Layer {
pub primitives: Primitives,
pub sensors: HashMap<Id, SenseShape>,
}
impl Layers {