FSO.SimAntics.VM.GetGlobalValue C# (CSharp) Method

GetGlobalValue() public method

Gets a global value set for this Virtual Machine.
public GetGlobalValue ( ushort var ) : short
var ushort The index of the global value to get. WARNING: Throws exception if index is OOB. /// Must be in range of 0 - 31.
return short
        public short GetGlobalValue(ushort var)
        {
            // should this be in VMContext?
            if (var > 32) throw new Exception("Global Access out of bounds!");
            return GlobalState[var];
        }