forked from StrafesNET/strafe-project
snf: bot: version const
This commit is contained in:
parent
eaecbc5b73
commit
8e228033e0
@ -4,6 +4,8 @@ use crate::newtypes;
|
|||||||
use crate::file::BlockId;
|
use crate::file::BlockId;
|
||||||
use strafesnet_common::physics::Time;
|
use strafesnet_common::physics::Time;
|
||||||
|
|
||||||
|
const VERSION:u32=0;
|
||||||
|
|
||||||
type TimedPhysicsInstruction=strafesnet_common::instruction::TimedInstruction<strafesnet_common::physics::Instruction,strafesnet_common::physics::TimeInner>;
|
type TimedPhysicsInstruction=strafesnet_common::instruction::TimedInstruction<strafesnet_common::physics::Instruction,strafesnet_common::physics::TimeInner>;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@ -309,7 +311,7 @@ pub fn write_bot<W:BinWriterExt>(mut writer:W,physics_version:u32,instructions:i
|
|||||||
|
|
||||||
let file_header=crate::file::Header{
|
let file_header=crate::file::Header{
|
||||||
fourcc:crate::file::FourCC::Bot,
|
fourcc:crate::file::FourCC::Bot,
|
||||||
version:0,
|
version:VERSION,
|
||||||
priming,
|
priming,
|
||||||
resource:0,
|
resource:0,
|
||||||
block_count,
|
block_count,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user