Files
ueblueprint/js/entity/KeyBindingEntity.js
barsdeveloper 8c30118a13 Various fixes
2023-03-31 22:19:13 +02:00

31 lines
742 B
JavaScript

import IdentifierEntity from "./IdentifierEntity.js"
import IEntity from "./IEntity.js"
export default class KeyBindingEntity extends IEntity {
static attributes = {
ActionName: "",
bShift: false,
bCtrl: false,
bAlt: false,
bCmd: 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
}
}