mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-06 15:47:30 +08:00
Refactoring
This commit is contained in:
16
js/entity/KeyBinding.js
Executable file
16
js/entity/KeyBinding.js
Executable file
@@ -0,0 +1,16 @@
|
||||
import Entity from "./Entity"
|
||||
|
||||
export default class KeyBinding extends Entity {
|
||||
|
||||
static attributes = {
|
||||
bCtrlDown: false,
|
||||
bAltDown: false,
|
||||
bShiftDown: false,
|
||||
Key: String,
|
||||
CommandName: String,
|
||||
}
|
||||
|
||||
getAttributes() {
|
||||
return KeyBinding.attributes
|
||||
}
|
||||
}
|
||||
32
js/entity/PathSymbolEntity.js
Normal file → Executable file
32
js/entity/PathSymbolEntity.js
Normal file → Executable file
@@ -1,16 +1,16 @@
|
||||
import Entity from "./Entity"
|
||||
|
||||
export default class PathSymbolEntity extends Entity {
|
||||
|
||||
static attributes = {
|
||||
value: String
|
||||
}
|
||||
|
||||
getAttributes() {
|
||||
return PathSymbolEntity.attributes
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.value
|
||||
}
|
||||
}
|
||||
import Entity from "./Entity"
|
||||
|
||||
export default class PathSymbolEntity extends Entity {
|
||||
|
||||
static attributes = {
|
||||
value: String
|
||||
}
|
||||
|
||||
getAttributes() {
|
||||
return PathSymbolEntity.attributes
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.value
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import TypeInitialization from "./TypeInitialization"
|
||||
|
||||
export default class PinEntity extends Entity {
|
||||
|
||||
static lookbehind = "Pin"
|
||||
static attributes = {
|
||||
PinId: GuidEntity,
|
||||
PinName: "",
|
||||
|
||||
Reference in New Issue
Block a user