mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 16:44:49 +08:00
* Grammar refactoring WIP * ISerializer.grammar * Fixing various bugs in the grammar * Small touch that improoves performance * Fix unknown values grammar * Various fixes * Serialization refactoring to drop suboject logic * Details fixed * Entity attributes initialization refactoring * JSDoc error fixed * Rename value key to default * Remove useless default * Revert string keys
41 lines
913 B
JavaScript
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
|
|
}
|
|
}
|