Interface IInputTemplate
Represents an input configuration template from which valid input configuration can be serialized.
Inherited Members
Namespace: Snowflake.Configuration.Input
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IInputTemplate : IConfigurationSection, IEnumerable<KeyValuePair<IConfigurationOptionDescriptor, IConfigurationValue>>, IEnumerable
Properties
Item[ControllerElement]
Gets or sets the real device element that has been mapped to a virtual element.
This will set all matching options for every IInput
Declaration
DeviceCapability this[ControllerElement targetElement] { set; }
Parameters
Type | Name | Description |
---|---|---|
Controller |
targetElement | The virtual element on the controller definition |
Property Value
Type | Description |
---|---|
Device |
Options
Gets the options representing the fields in which the options are serialized in configuration, the implementation of this should ensure that this is enumerated in the same order with which the properties are described.
Declaration
IEnumerable<IInputOption> Options { get; }
Property Value
Type | Description |
---|---|
System. |
PlayerIndex
Gets the controller index of this template instance. This is zero indexed, Player 1 for example is index 0.
Declaration
int PlayerIndex { get; }
Property Value
Type | Description |
---|---|
System. |
Values
Gets the mapped controller elements of the input configuration. A proper implementation should require this be immutable. This dictionary is keyed on the property names of the input template interface.
Declaration
IReadOnlyDictionary<string, DeviceCapability> Values { get; }
Property Value
Type | Description |
---|---|
System. |