libgm 0.5.1

A tool for modding, unpacking and decompiling GameMaker games
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::gml::instruction::InstanceType;
use crate::gml::instruction::VariableType;
use crate::prelude::GMRef;
use crate::wad::elements::variable::GMVariable;

/// A variable reference in an instruction.
/// Contains the actual variable ref as well as instance type and variable type.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CodeVariable {
    pub variable: GMRef<GMVariable>,
    pub variable_type: VariableType,
    pub instance_type: InstanceType,

    /// TODO: when does this happen?
    pub is_int32: bool,
}