Class ScopedProperty<T>
public class ScopedProperty<T> where T : struct
Type Parameters
T
- Inheritance
-
ScopedProperty<T>
Constructors
ScopedProperty()
public ScopedProperty()
ScopedProperty(T)
public ScopedProperty(T defaultValue)
Parameters
defaultValueT
Properties
Current
Gets the current value for this property. Will be the default value, or the value set by
any currently open scopes.
Use the different scopes provided by Draw to modify this value.
public T Current { get; }
Property Value
- T
Default
Gets or sets the default value for this property.
public T Default { get; set; }
Property Value
- T
Methods
HasValue()
ResetDefault()
public void ResetDefault()
ToString()
Operators
implicit operator bool(ScopedProperty<T>)
public static implicit operator bool(ScopedProperty<T> item)
Parameters
itemScopedProperty<T>
Returns
implicit operator T(ScopedProperty<T>)
public static implicit operator T(ScopedProperty<T> item)
Parameters
itemScopedProperty<T>
Returns
- T