/// <summary>Sets a custom variable with the given name and value. This will take top priority.</summary> /// <param name="code">The name of the variable to set.</param> /// <param name="value">The value to set it to.</param> public void SetValue(string code, string value) { if (Custom == null) { Custom = new VariableSet(); } Custom[code] = value; if (OnChange != null) { OnChange(code); } }
/// <summary>Creates a new complete variable set.</summary> public FullVariableSet() { Custom = new VariableSet(); }