FSO.SimAntics.VM.GetGlobalValue C# (CSharp) 메소드

GetGlobalValue() 공개 메소드

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.
리턴 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];
        }