update readme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user