Skip to content

LegacyActionBindings

interludesoftware.tick

Interlude.Tick

LegacyActionBindings Class

Legacy-backend action bindings. Each named action maps to one or more LegacyKeyBindings (any one fires it). The implicit UnityEngine.KeyCode conversion keeps the common case terse:

Actions = new LegacyActionBindings
{
    Actions =
    {
        ["Jump"]  = new() { KeyCode.Space },
        ["Shoot"] = new() { KeyCode.Mouse0 },
        ["Menu"]  = new() { KeyCode.Escape, KeyCode.P },                       // any of several
        ["Dash"]  = new() { new LegacyKeyBinding(KeyCode.D, ModifierMask.Shift) }, // with a modifier
    },
};
public class LegacyActionBindings : Interlude.Tick.ActionBindings

Inheritance System.ObjectActionBindings → LegacyActionBindings