mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
Serialization fixed
This commit is contained in:
@@ -11,8 +11,4 @@ export default class LocalizedTextEntity extends Entity {
|
||||
getAttributes() {
|
||||
return LocalizedTextEntity.attributes
|
||||
}
|
||||
|
||||
toString() {
|
||||
"NSLOCTEXT(" + `"${this.namespace}"` + ", " + `"${this.key}"` + ", " + `"${this.value}"` + ")"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import Entity from "./Entity"
|
||||
import Guid from "./primitive/Guid"
|
||||
import PathSymbol from "./primitive/PathSymbol"
|
||||
|
||||
export default class PinReferenceEntity extends Entity {
|
||||
|
||||
static attributes = {
|
||||
objectName: String,
|
||||
objectName: PathSymbol,
|
||||
pinGuid: Guid
|
||||
}
|
||||
|
||||
|
||||
17
js/entity/primitive/PathSymbol.js
Normal file
17
js/entity/primitive/PathSymbol.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Primitive from "./Primitive";
|
||||
|
||||
export default class PathSymbol extends Primitive {
|
||||
|
||||
constructor(value) {
|
||||
super()
|
||||
this.value = new String(value).valueOf()
|
||||
}
|
||||
|
||||
valueOf() {
|
||||
this.value
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.value
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user