libgm 0.7.1

A tool for unpacking and modding GameMaker games
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: GPL-3.0-only
use crate::gml::instruction::InstanceType;
use crate::gml::instruction::VariableType;
use crate::prelude::GMRef;
use crate::wad::elem::variable::Variable;

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

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