ShardSpace
class ShardSpace( val shard: Int, private val source: ShardTerrainSource = ShardTerrainSource.CacheRegions)on_object_option(Assets.WorldObject.poordoor, "Look-through") { player -> val space = World.spatial.space(player.shardId) val here = player.tile4.tile val objects = space.objectsAt(target.tile4.tile) player.message(if (space.raycast(here, target.tile4.tile)) "You see ${objects.size} things there." else "Something is in the way.")}val shard: IntinstanceMap
Section titled “instanceMap”val instanceMap: InstanceMap?placeNpc
Section titled “placeNpc”fun placeNpc( index: Int, packedTile: Int)removeNpc
Section titled “removeNpc”fun removeNpc(index: Int)placeProjection
Section titled “placeProjection”fun placeProjection( index: Int, packedTile: Int)removeProjection
Section titled “removeProjection”fun removeProjection(index: Int)placeTransient
Section titled “placeTransient”fun placeTransient( entity: Entity, packedTile: Int)relocateTransient
Section titled “relocateTransient”fun relocateTransient( entity: Entity, oldPacked: Int, newPacked: Int)removeTransient
Section titled “removeTransient”fun removeTransient( entity: Entity, packedTile: Int)globTransientsWithinRings
Section titled “globTransientsWithinRings”fun globTransientsWithinRings( centerPacked: Int, maxRings: Int, visit: (Entity) -> Unit)collisionFlag
Section titled “collisionFlag”fun collisionFlag( x: Int, z: Int, height: Int, viewer: Int = NO_VIEWER): IntcanTraverse
Section titled “canTraverse”fun canTraverse( height: Int, x: Int, z: Int, dx: Int, dz: Int, size: Int = 1, extraFlag: Int = 0, strategy: CollisionStrategy = CollisionStrategy.Normal, viewer: Int = NO_VIEWER): Boolean
fun canTraverse( from: Tile3, dir: Direction, strategy: CollisionStrategy = CollisionStrategy.Normal, viewer: Int = NO_VIEWER): BooleanisClipped
Section titled “isClipped”fun isClipped( tile: Tile3, viewer: Int = NO_VIEWER): BooleanworldItemAt
Section titled “worldItemAt”fun worldItemAt( tile: Tile3, id: Int): WorldItem?objectAt
Section titled “objectAt”fun objectAt( tile: Tile3, slot: Int, viewer: Int = NO_VIEWER): WorldObject?objectsAt
Section titled “objectsAt”fun objectsAt( tile: Tile3, viewer: Int = NO_VIEWER): List<WorldObject>
fun objectsAt( tile: Tile3, observer: Actor): List<WorldObject>sweepTransientObjects
Section titled “sweepTransientObjects”fun sweepTransientObjects()raycast
Section titled “raycast”fun raycast( from: Tile3, to: Tile3, viewer: Int = NO_VIEWER): BooleanDYNAMIC_BITS
Section titled “DYNAMIC_BITS”val DYNAMIC_BITS: IntArrayNO_VIEWER
Section titled “NO_VIEWER”const val NO_VIEWER: Int = -1OVERLAY_VIEW_RADIUS
Section titled “OVERLAY_VIEW_RADIUS”const val OVERLAY_VIEW_RADIUS: Int = 3