diff --git a/src/bot.rs b/src/bot.rs index d1472e0..3071a21 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -27,6 +27,20 @@ loop{ */ +//xdd +mod simulation{ + pub struct State{} + pub struct Instruction{} +} +mod instruction{ + pub struct TimedInstruction{instruction:Instruction} +} +mod timeline{ + pub struct Timeline{timeline:Vec>} +} + +//serious code + struct SegmentId(u64); pub struct Segment{ diff --git a/src/file.rs b/src/file.rs index c25d2b2..0c2b4b9 100644 --- a/src/file.rs +++ b/src/file.rs @@ -55,3 +55,7 @@ pub struct BlockLayout{ count:u64, location:Vec, } + +pub struct File{ + //??? +} diff --git a/src/map.rs b/src/map.rs index e4fc21f..0cd0330 100644 --- a/src/map.rs +++ b/src/map.rs @@ -46,21 +46,35 @@ for model_id in 0..num_models{ */ -struct Uuid(u128); -struct BvhNodeId(u64); + +//xdd +mod physics{ + pub struct StyleModifiers{} +} +mod model{ + pub struct IndexedModel{} + pub struct ModelInstance{} +} +mod image{ + pub struct Image{} +} + +//serious code + +struct ModelUuid(u128); +struct ImageUuid(u128); +pub struct BvhNodeId(u64); struct BvhNode{ // } -enum Resource{ - IndexedModel(model::IndexedModel), - Image(image::Image),//? -} pub struct StreamableMap{ file:crate::file::File, style:physics::StyleModifiers,//probably should move this out of physics bvh:BvhNode, - resources:std::collections::HashMap, + //do not need this? return only new data with load_node + resource_model:std::collections::HashMap, + resource_image:std::collections::HashMap, } impl StreamableMap{ pub fn load_node(&mut self,node_id:BvhNodeId)->Result,Error>{