diff --git a/src/main.rs b/src/main.rs index afe190b..b4ea194 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,6 +102,7 @@ mod production; mod sparse_tree; mod terrain; mod voxel_cache; +pub mod voxel_data; enum DisplayTexture { diff --git a/src/voxel_data.rs b/src/voxel_data.rs new file mode 100644 index 0000000..482bd2c --- /dev/null +++ b/src/voxel_data.rs @@ -0,0 +1,7 @@ +pub trait Attribute: bytemuck::Pod + bytemuck::Zeroable + Clone + Copy + 'static {} + +pub trait Has +{ + fn get(&self) -> &A; + fn get_mut(&mut self) -> &mut A; +}