name some ids

This commit is contained in:
Quaternions 2024-08-06 13:02:56 -07:00
parent 4b2de6f88c
commit 617cae300f

View File

@ -1,10 +1,13 @@
use super::common::flag; use super::common::flag;
pub type ModeId=u32;
pub type StageId=u32;
#[binrw::binrw] #[binrw::binrw]
#[brw(little)] #[brw(little)]
pub struct StageElement{ pub struct StageElement{
pub header:u8, pub header:u8,
pub stage_id:u32, pub stage_id:StageId,
#[br(if(header&Self::JUMP_LIMIT!=0))] #[br(if(header&Self::JUMP_LIMIT!=0))]
pub jump_limit:Option<u8>, pub jump_limit:Option<u8>,
} }