From 40e7717aecb83255643f63d9db71dcc5713a3d0c Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 1 Feb 2024 20:21:56 -0800 Subject: [PATCH] stop error --- src/bot.rs | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index 3c97671..17770bd 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -41,24 +41,24 @@ mod simulation{ #[brw(little)] pub struct Instruction{} } -mod instruction{ - #[super::binrw] - #[brw(little)] - pub struct TimedInstruction{ - time:u64, - instruction:Instruction - } -} -mod timeline{ - #[super::binrw] - #[brw(little)] - pub struct Timeline{ - #[bw(try_calc(u32::try_from(instructions.len())))] - instruction_count:u32, - #[br(count=instruction_count)] - instructions:Vec> - } -} +// mod instruction{ + // #[super::binrw] + // #[brw(little)] + // pub struct TimedInstruction{ + // time:u64, + // instruction:Instruction + // } +// } +// mod timeline{ + // #[super::binrw] + // #[brw(little)] + // pub struct Timeline{ + // #[bw(try_calc(u32::try_from(instructions.len())))] + // instruction_count:u32, + // #[br(count=instruction_count)] + // instructions:Vec> + // } +// } //serious code @@ -70,15 +70,15 @@ struct SegmentId(u64); #[brw(little)] pub struct Segment{ state:simulation::State, - #[bw(try_calc(u32::try_from(instructions.len())))] - instruction_count:u32, - #[br(count=instruction_count)] - instructions:Vec> + //#[bw(try_calc(u32::try_from(instructions.len())))] + //instruction_count:u32, + //#[br(count=instruction_count)] + //instructions:Vec> } pub struct StreamableBot{ file:crate::file::File, - timeline:timeline::Timeline, + //timeline:timeline::Timeline, segment_id_to_block_id:Vec, } impl StreamableBot{