diff --git a/src/main/kotlin/screeps/api/RoomPosition.kt b/src/main/kotlin/screeps/api/RoomPosition.kt index 750a211..45c5c6d 100644 --- a/src/main/kotlin/screeps/api/RoomPosition.kt +++ b/src/main/kotlin/screeps/api/RoomPosition.kt @@ -15,8 +15,8 @@ external class RoomPosition(x: Int, y: Int, roomName: String) : NavigationTarget secondaryColor: ColorConstant ): Any - fun findClosestByPath( - objects: Array, + fun findClosestByPath( + objects: Array, opts: FindClosestByPathOptions = definedExternally ): T? @@ -26,8 +26,7 @@ external class RoomPosition(x: Int, y: Int, roomName: String) : NavigationTarget ): T? fun findClosestByRange( - type: FindConstant, - objects: Array, + objects: Array, opts: FilterOption = definedExternally ): T?