From 112d517ed4a0aa805df963c7e907a1c9cb37e489 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 29 Sep 2023 18:36:43 -0700 Subject: [PATCH] modify bot header to not depend on ownership of all blocks --- src/sniffer.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sniffer.rs b/src/sniffer.rs index 75c57ee..b5de7aa 100644 --- a/src/sniffer.rs +++ b/src/sniffer.rs @@ -63,10 +63,11 @@ BLOCK_BOT_HEADER: u128 map_resource_uuid //which map is this bot running u128 time_resource_uuid //resource database time //don't include style info in bot header because it's in the physics state -//blocks are not necessarily laid out in chronological order. -//the timestamps should be sorted, keeping track of which block_id it refers to -for block_id in 1..num_blocks{ //note that the header block id is skipped +//blocks are laid out in chronological order, but indices may jump around. +u64 num_segments +for _ in 0..num_segments{ i64 time //physics_state timestamp + u64 block_id } BLOCK_BOT_SEGMENT: