forked from StrafesNET/strafe-project
33 lines
916 B
Rust
33 lines
916 B
Rust
pub enum Error{
|
|
|
|
}
|
|
|
|
/* block types
|
|
|
|
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 simulation state
|
|
//blocks are laid out in chronological order, but indices may jump around.
|
|
u64 num_segments
|
|
for _ in 0..num_segments{
|
|
i64 time //simulation_state timestamp
|
|
u64 block_id
|
|
}
|
|
|
|
BLOCK_BOT_SEGMENT:
|
|
//format version indicates what version of these structures to use
|
|
SimulationState simulation_state //SimulationState is just under ClientState which includes Play/Pause events that the simulation doesn't know about.
|
|
//to read, greedily decode instructions until eof
|
|
loop{
|
|
//delta encode as much as possible (time,mousepos)
|
|
//strafe ticks are implied
|
|
//physics can be implied in an input-only bot file
|
|
TimedInstruction<SimulationInstruction> instruction
|
|
}
|
|
|
|
*/
|
|
|
|
pub struct Bot{
|
|
//
|
|
} |