Interface IUntypedOption
- Namespace
- ConfigurableWarning.API.Options
- Assembly
- RedstoneWizard08.ContentLibrary.dll
A simplified version of IOption<T> that has no type argument, and uses objects instead (with casts).
public interface IUntypedOption
Methods
GetName()
Gets this option's name. This is its name in the registry and in the state holder.
string GetName()
Returns
- string
The option's name.
GetValue()
Gets the current value of the option. WARNING! THIS MAY NOT ALWAYS BE CORRECT! USE THE STATE HOLDER INSTEAD!
object GetValue()
Returns
- object
The (potential) value of this option.
Register(string, string)
Registers this option to Content Settings, sets up its state, and registers it to the OptionManager.
void Register(string tab, string category)
Parameters
SetValue(object)
Sets the option's value. This will NOT update it in the state!
void SetValue(object value)
Parameters
value
objectThe new value.