temp code for improved focus
This commit is contained in:
parent
134e3fc79a
commit
6f22aaeec4
14
src/bot.rs
14
src/bot.rs
@ -27,6 +27,20 @@ loop{
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//xdd
|
||||||
|
mod simulation{
|
||||||
|
pub struct State{}
|
||||||
|
pub struct Instruction{}
|
||||||
|
}
|
||||||
|
mod instruction{
|
||||||
|
pub struct TimedInstruction<Instruction>{instruction:Instruction}
|
||||||
|
}
|
||||||
|
mod timeline{
|
||||||
|
pub struct Timeline<Instruction>{timeline:Vec<super::instruction::TimedInstruction<Instruction>>}
|
||||||
|
}
|
||||||
|
|
||||||
|
//serious code
|
||||||
|
|
||||||
struct SegmentId(u64);
|
struct SegmentId(u64);
|
||||||
|
|
||||||
pub struct Segment{
|
pub struct Segment{
|
||||||
|
@ -55,3 +55,7 @@ pub struct BlockLayout{
|
|||||||
count:u64,
|
count:u64,
|
||||||
location:Vec<u64>,
|
location:Vec<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub struct File{
|
||||||
|
//???
|
||||||
|
}
|
||||||
|
28
src/map.rs
28
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{
|
struct BvhNode{
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
enum Resource{
|
|
||||||
IndexedModel(model::IndexedModel),
|
|
||||||
Image(image::Image),//?
|
|
||||||
}
|
|
||||||
|
|
||||||
pub struct StreamableMap{
|
pub struct StreamableMap{
|
||||||
file:crate::file::File,
|
file:crate::file::File,
|
||||||
style:physics::StyleModifiers,//probably should move this out of physics
|
style:physics::StyleModifiers,//probably should move this out of physics
|
||||||
bvh:BvhNode,
|
bvh:BvhNode,
|
||||||
resources:std::collections::HashMap<Uuid,Resource>,
|
//do not need this? return only new data with load_node
|
||||||
|
resource_model:std::collections::HashMap<ModelUuid,model::IndexedModel>,
|
||||||
|
resource_image:std::collections::HashMap<ImageUuid,image::Image>,
|
||||||
}
|
}
|
||||||
impl StreamableMap{
|
impl StreamableMap{
|
||||||
pub fn load_node(&mut self,node_id:BvhNodeId)->Result<Vec<model::ModelInstance>,Error>{
|
pub fn load_node(&mut self,node_id:BvhNodeId)->Result<Vec<model::ModelInstance>,Error>{
|
||||||
|
Loading…
Reference in New Issue
Block a user