mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Serialization fixed
This commit is contained in:
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