update readme

This commit is contained in:
2025-11-06 13:09:14 -08:00
parent 8b52f0765f
commit 6a6849ec79

View File

@@ -3,7 +3,7 @@ Roblox Bhop/Surf Bot File Format
## Example
Read the whole file:
Read the whole file and print each position:
```rust
use strafesnet_roblox_bot_file::v0::read_all_to_block;
@@ -11,6 +11,10 @@ let file=std::fs::read("bot_file")?;
let mut input=std::io::Cursor::new(file);
let block=read_all_to_block(&mut input)?;
for output_event in &block.output_events{
println!("{:?}",output_event.event.position);
}
```
Or decode individual blocks using block location info:
```rust