From 6f22aaeec4347ddd643e2cb950209ed3a9f2d691 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 16 Jan 2024 20:07:11 -0800 Subject: [PATCH] temp code for improved focus --- src/bot.rs | 14 ++++++++++++++ src/file.rs | 4 ++++ src/map.rs | 28 +++++++++++++++++++++------- 3 files changed, 39 insertions(+), 7 deletions(-) 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>{