modify bot header to not depend on ownership of all blocks

This commit is contained in:
Quaternions 2023-09-29 18:36:43 -07:00
parent a79157da88
commit a2ce319cb2

View File

@ -63,10 +63,11 @@ BLOCK_BOT_HEADER:
u128 map_resource_uuid //which map is this bot running u128 map_resource_uuid //which map is this bot running
u128 time_resource_uuid //resource database time u128 time_resource_uuid //resource database time
//don't include style info in bot header because it's in the physics state //don't include style info in bot header because it's in the physics state
//blocks are not necessarily laid out in chronological order. //blocks are laid out in chronological order, but indices may jump around.
//the timestamps should be sorted, keeping track of which block_id it refers to u64 num_segments
for block_id in 1..num_blocks{ //note that the header block id is skipped for _ in 0..num_segments{
i64 time //physics_state timestamp i64 time //physics_state timestamp
u64 block_id
} }
BLOCK_BOT_SEGMENT: BLOCK_BOT_SEGMENT: