30 lines
829 B
TypeScript
30 lines
829 B
TypeScript
// UE/EnhancedActionKeyMapping.ts
|
|
|
|
import type { InputAction } from '#root/UE/InputAction.ts';
|
|
import type { InputModifier } from '#root/UE/InputModifier.ts';
|
|
import type { InputTrigger } from '#root/UE/InputTrigger.ts';
|
|
import type { Key } from '#root/UE/Key.ts';
|
|
import { StructBase } from '#root/UE/StructBase.ts';
|
|
import type { UEArray } from '#root/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;
|
|
}
|
|
}
|