use crate::string_utils::PaddedString;
const MAX_NAME_LENGTH: usize = 100;
const MAX_BUTTON_ART_LENGTH: usize = 100;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(u8)]
pub enum BuildQueueType {
Research = 0,
Unit = 1,
Reviving = 2,
}
#[repr(C, packed)]
pub struct BuildQueueInfo {
pub id: u32,
pub name: PaddedString<MAX_NAME_LENGTH>,
pub training_progress: u32,
pub build_type: BuildQueueType,
pub button_art: PaddedString<MAX_BUTTON_ART_LENGTH>,
}
const _: () = assert!(size_of::<BuildQueueInfo>() == 209);