30 lines
855 B
TypeScript
30 lines
855 B
TypeScript
// Content/UE/EnhancedActionKeyMapping.ts
|
|
|
|
import type { InputAction } from '/Content/UE/InputAction.ts';
|
|
import type { InputModifier } from '/Content/UE/InputModifier.ts';
|
|
import type { InputTrigger } from '/Content/UE/InputTrigger.ts';
|
|
import type { Key } from '/Content/UE/Key.ts';
|
|
import { StructBase } from '/Content/UE/StructBase.ts';
|
|
import type { UEArray } from '/Content/UE/UEArray.ts';
|
|
|
|
export class EnhancedActionKeyMapping extends StructBase {
|
|
public action: InputAction;
|
|
public key: Key;
|
|
public modifiers: UEArray<InputModifier>;
|
|
public triggers: UEArray<InputTrigger>;
|
|
|
|
constructor(
|
|
triggers: UEArray<InputTrigger>,
|
|
modifiers: UEArray<InputModifier>,
|
|
action: InputAction,
|
|
key: Key
|
|
) {
|
|
super();
|
|
|
|
this.action = action;
|
|
this.key = key;
|
|
this.modifiers = modifiers;
|
|
this.triggers = triggers;
|
|
}
|
|
}
|