use crate::gml::instruction::InstanceType;
use crate::gml::instruction::ReferenceType;
use crate::prelude::GMRef;
use crate::wad::elem::variable::Variable;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct CodeVariable {
pub variable: GMRef<Variable>,
pub ref_type: ReferenceType,
pub instance_type: InstanceType,
pub is_int32: bool,
}
impl CodeVariable {
#[must_use]
pub const fn new(variable: GMRef<Variable>, instance_type: InstanceType) -> Self {
Self { variable, ref_type: ReferenceType::Normal, instance_type, is_int32: false }
}
}