mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 09:44:49 +08:00
Several fixes for the attribute order
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Configuration from "../Configuration.js"
|
||||
import AttributeInfo from "../entity/AttributeInfo.js"
|
||||
import ObjectEntity from "../entity/ObjectEntity.js"
|
||||
import PinEntity from "../entity/PinEntity.js"
|
||||
import Grammar from "./Grammar.js"
|
||||
@@ -88,13 +89,15 @@ export default class ObjectSerializer extends Serializer {
|
||||
attributeValueConjunctionSign,
|
||||
key => entity[key] instanceof ObjectEntity ? "" : attributeKeyPrinter(key)
|
||||
)
|
||||
+ entity.getCustomproperties().map(pin =>
|
||||
moreIndentation
|
||||
+ attributeKeyPrinter("CustomProperties ")
|
||||
+ SerializerFactory.getSerializer(PinEntity).doWrite(pin, insideString)
|
||||
+ this.attributeSeparator
|
||||
+ (!AttributeInfo.getAttribute(entity, "CustomProperties", "ignored")
|
||||
? entity.getCustomproperties().map(pin =>
|
||||
moreIndentation
|
||||
+ attributeKeyPrinter("CustomProperties ")
|
||||
+ SerializerFactory.getSerializer(PinEntity).doWrite(pin, insideString)
|
||||
+ this.attributeSeparator
|
||||
).join("")
|
||||
: ""
|
||||
)
|
||||
.join("")
|
||||
+ indentation + "End Object"
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user