mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
30 lines
880 B
JavaScript
30 lines
880 B
JavaScript
import IdentifierEntity from "./IdentifierEntity"
|
|
import IEntity from "./IEntity"
|
|
|
|
export default class KeyBindingEntity extends IEntity {
|
|
|
|
static attributes = {
|
|
ActionName: "",
|
|
bShift: false,
|
|
bCtrl: false,
|
|
bAlt: false,
|
|
bCmd: false,
|
|
Key: IdentifierEntity,
|
|
}
|
|
|
|
constructor(options = {}) {
|
|
options.ActionName = options.ActionName ?? ""
|
|
options.bShift = options.bShift ?? false
|
|
options.bCtrl = options.bCtrl ?? false
|
|
options.bAlt = options.bAlt ?? false
|
|
options.bCmd = options.bCmd ?? false
|
|
super(options)
|
|
/** @type {String} */ this.ActionName
|
|
/** @type {Boolean} */ this.bShift
|
|
/** @type {Boolean} */ this.bCtrl
|
|
/** @type {Boolean} */ this.bAlt
|
|
/** @type {Boolean} */ this.bCmd
|
|
/** @type {IdentifierEntity} */ this.Key
|
|
}
|
|
}
|