Class FunctionValueProvider<V>
public class FunctionValueProvider<V> : IValueProvider where V : struct
Type Parameters
V
- Inheritance
-
FunctionValueProvider<V>
- Implements
- Inherited Members
Constructors
FunctionValueProvider(Func<IEntityIdentifier, bool>, IAttribute<V>, V)
public FunctionValueProvider(Func<IEntityIdentifier, bool> f, IAttribute<V> attribute, V value)
Parameters
fFunc<IEntityIdentifier, bool>attributeIAttribute<V>valueV
FunctionValueProvider(Func<IEntityIdentifier, IRegistry?, bool>, IAttribute<V>, V, IRegistry?)
public FunctionValueProvider(Func<IEntityIdentifier, IRegistry?, bool> f, IAttribute<V> attribute, V value, IRegistry? registry)
Parameters
fFunc<IEntityIdentifier, IRegistry, bool>attributeIAttribute<V>valueVregistryIRegistry
FunctionValueProvider(IAttribute<V>, V)
public FunctionValueProvider(IAttribute<V> attribute, V value)
Parameters
attributeIAttribute<V>valueV
FunctionValueProvider(IEntityAttributeValueTypeSpecifier, Func<IEntityIdentifier, IAttribute<V>, IRegistry?, V?>, IRegistry?)
public FunctionValueProvider(IEntityAttributeValueTypeSpecifier typeSpecifier, Func<IEntityIdentifier, IAttribute<V>, IRegistry?, V?> valueFunction, IRegistry? registry)
Parameters
typeSpecifierIEntityAttributeValueTypeSpecifiervalueFunctionFunc<IEntityIdentifier, IAttribute<V>, IRegistry, V?>registryIRegistry
Properties
TypeSpecifier
public IEntityAttributeValueTypeSpecifier TypeSpecifier { get; }
Property Value
Methods
GetValue<T>(IEntityIdentifier, IAttribute<T>)
public T? GetValue<T>(IEntityIdentifier identifier, IAttribute<T> attribute) where T : struct
Parameters
identifierIEntityIdentifierattributeIAttribute<T>
Returns
- T?
Type Parameters
T