From a2ce319cb29d78c46d12ff6172e529bd64df9cce 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: