Skip to content

InputAPI reference

Class InputBindingSet

Namespace: MicroEngine.Input
Assembly: MicroEngine.Input.dll
Guide: Input

Every action’s bindings as data, for a rebinding screen to save and load: through SaveBindings and LoadBindings (the platform’s storage), or as a value a game keeps in its own save (SaveStore.Save(“bindings”, map.ExportBindings()); the classes have public properties).

C#
public sealed class InputBindingSet

Inheritance

object ← InputBindingSet

Constructors

InputBindingSet()

C#
public InputBindingSet()

Properties

Actions

The actions, in ordinal order of their names.

C#
public List<ActionBindingData> Actions { get; set; }

Property Value

List<ActionBindingData>

Version

The format version (1).

C#
public int Version { get; set; }

Property Value

int

Methods

FromJson(string)

Reads a set written by ToJson.

C#
public static InputBindingSet FromJson(string json)

Parameters

json string

Returns

InputBindingSet

Exceptions

FormatException

The text is not a binding set.

ToJson()

The set as JSON text.

C#
public string ToJson()

Returns

string