Footprint
class Footprint( tiles: Int = 1, width: Int = tiles, length: Int = tiles, shape: WorldObjectShape? = null, angle: Int = 0, blockedSides: Int = BlockedSide.NONE, val exclusive: Boolean = false) : Component()on_world_start { World.spawn(Assets.Npc.goblin, Tile4.global(3240, 3220)).replaceComponent(Footprint(tiles = 2))}
on_object_option(Assets.WorldObject.poordoor, "Measure") { player -> val footprint = Footprint.of(target) player.message("It spans ${footprint.rotatedWidth} by ${footprint.rotatedLength} tiles.")}exclusive
Section titled “exclusive”val exclusive: Booleanvar width: Intvar tiles: IntonComponentAddedToEntity
Section titled “onComponentAddedToEntity”override fun onComponentAddedToEntity()onComponentRemovedFromEntity
Section titled “onComponentRemovedFromEntity”override fun onComponentRemovedFromEntity(): UnitrotatedWidth
Section titled “rotatedWidth”val rotatedWidth: IntrotatedLength
Section titled “rotatedLength”val rotatedLength: IntpathingEntity
Section titled “pathingEntity”fun pathingEntity(size: Int): Footprintfun of(worldObject: WorldObject): Footprint