un-nest example code
This commit is contained in:
@@ -32,14 +32,16 @@ let timelines=BlockTimelines::from_reader(&header,&mut input)?;
|
||||
// World, Gravity, Run, Camera, Setting
|
||||
for timed in timelines.offline_blocks(){
|
||||
let block_info=timelines.block_info(timed.event)?;
|
||||
let block=Block::from_reader(block_info.take_seek(&mut input)?)?;
|
||||
let block_reader=block_info.take_seek(&mut input)?;
|
||||
let block=Block::from_reader(block_reader)?;
|
||||
}
|
||||
|
||||
// realtime blocks include the following event types:
|
||||
// Input, Output, Sound
|
||||
for timed in timelines.realtime_blocks(){
|
||||
let block_info=timelines.block_info(timed.event)?;
|
||||
let block=Block::from_reader(block_info.take_seek(&mut input)?)?;
|
||||
let block_reader=block_info.take_seek(&mut input)?;
|
||||
let block=Block::from_reader(block_reader)?;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user