Class Data
Represents variable information of a SlugBaseCharacter that depends on a Feature.
Inherited Members
Namespace: SlugBase.Features
Assembly: SlugBase.dll
Syntax
public abstract class Data
Constructors
View SourceData(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
View SourceRequiredFeature
The feature this data depends upon.
Declaration
public Feature RequiredFeature { get; }
Property Value
Type | Description |
---|---|
Feature |
Methods
View SourceTryUnbox<T>(StrongBox<T>, out T)
Gets the value of a StrongBox<T>.
Declaration
public static bool TryUnbox<T>(StrongBox<T> box, out T value)
Parameters
Type | Name | Description |
---|---|---|
StrongBox<T> | box | The StrongBox<T> holding the value or |
T | value | The stored value, or |
Returns
Type | Description |
---|---|
bool |
|
Type Parameters
Name | Description |
---|---|
T | The stored value's type. |