[Editor] Fix "$$" issue in map initializer class

This commit is contained in:
2023-11-02 13:21:37 +01:00
parent 43ff6012d2
commit 8603c52bde
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ class MapObjectsCodeGenerator : CodeGenerator {
.addParameter(TypeName.INT, "x", Modifier.FINAL)
.addParameter(TypeName.INT, "y", Modifier.FINAL)
.addParameter(MAP_PIN_TYPE, "here", Modifier.FINAL)
.addCode(it.code)
.addCode(it.code.replace("\$", "\$\$"))
.build()
.let(generatedClass::addMethod)
}

View File

@@ -88,7 +88,7 @@ class ObjectPaintingTrace(
* layer's index and x,y coordinates of the current tile
* x: int - the x coordinate of the current tile
* y: int - the y coordinate of the current tile
* layer: ObjectLayer - current object layer's index
* layer: ObjectLayer - current object layer
* map: GameMap - current map
* handler: ${className(map.handler)} - current map handler
* runner: ${className(projectContext.project?.runner)} - the game runner of the project