Files
ueblueprint/js/entity/KeyBindingEntity.js
2023-04-01 19:40:34 +02:00

41 lines
913 B
JavaScript

import IdentifierEntity from "./IdentifierEntity.js"
import IEntity from "./IEntity.js"
export default class KeyBindingEntity extends IEntity {
static attributes = {
ActionName: {
default: "",
},
bShift: {
default: false,
},
bCtrl: {
default: false,
},
bAlt: {
default: false,
},
bCmd: {
default: false,
},
Key: {
type: IdentifierEntity,
},
}
static {
this.cleanupAttributes(this.attributes)
}
constructor(values = {}) {
super(values)
/** @type {String} */ this.ActionName
/** @type {Boolean} */ this.bShift
/** @type {Boolean} */ this.bCtrl
/** @type {Boolean} */ this.bAlt
/** @type {Boolean} */ this.bCmd
/** @type {IdentifierEntity} */ this.Key
}
}