placeUnitNearTile

fun placeUnitNearTile(location: Vector2, unitName: String): MapUnit?

Tries to place the a unitName unit into the TileInfo closest to the given the location

Return

created MapUnit or null if no suitable location was found

Parameters

location

where to try to place the unit

unitName

name of the BaseUnit to create and place

Sources

jvm source
Link copied to clipboard