public SetGlobalValue ( ushort var, short value ) : bool | ||
var | ushort | Index for value, must be in range 0 - 31. |
value | short | Global value. |
Результат | bool |
public bool SetGlobalValue(ushort var, short value)
{
if (var > 32) throw new Exception("Global Access out of bounds!");
GlobalState[var] = value;
return true;
}