Пример #1
0
        /// <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);
            }
        }
Пример #2
0
 /// <summary>Creates a new complete variable set.</summary>
 public FullVariableSet()
 {
     Custom = new VariableSet();
 }