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{