Class Data
Represents variable information of a SlugBaseCharacter that depends on a Feature.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SlugBase.Features
Assembly: SlugBase.dll
Syntax
public abstract class Data
Constructors
Data(Feature)
Create a new Data instance that requires a given feature.
Declaration
public Data(Feature requiredFeature)
Parameters
Type | Name | Description |
---|---|---|
Feature | requiredFeature | The feature that this requires, or null to not require a feature. |
Properties
RequiredFeature
The feature this data depends upon.
Declaration
public Feature RequiredFeature { get; }
Property Value
Type | Description |
---|---|
Feature |
Methods
TryUnbox<T>(StrongBox<T>, out T)
Gets the value of a System.Runtime.CompilerServices.StrongBox<T>.
Declaration
public static bool TryUnbox<T>(StrongBox<T> box, out T value)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.CompilerServices.StrongBox<T> | box | The System.Runtime.CompilerServices.StrongBox<T> holding the value or |
T | value | The stored value, or |
Returns
Type | Description |
---|---|
System.Boolean |
|
Type Parameters
Name | Description |
---|---|
T | The stored value's type. |