Module tile_set

Consts

BITMASK_2X2 = 0'i64
BITMASK_3X3_MINIMAL = 1'i64
BITMASK_3X3 = 2'i64
BIND_TOPLEFT = 1'i64
BIND_TOP = 2'i64
BIND_TOPRIGHT = 4'i64
BIND_LEFT = 8'i64
BIND_RIGHT = 32'i64
BIND_BOTTOMLEFT = 64'i64
BIND_BOTTOM = 128'i64
BIND_BOTTOMRIGHT = 256'i64
SINGLE_TILE = 0'i64
AUTO_TILE = 1'i64
ANIMATED_TILE = 2'i64

Procs

proc createTile(self: TileSet; id: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc autotileSetBitmaskMode(self: TileSet; id: int64; mode: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc autotileGetBitmaskMode(self: TileSet; id: int64): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetName(self: TileSet; id: int64; name: string) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetName(self: TileSet; id: int64): string {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetTexture(self: TileSet; id: int64; texture: Texture) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetTexture(self: TileSet; id: int64): Texture {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc tileSetNormalMap(self: TileSet; id: int64; normalMap: Texture) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetNormalMap(self: TileSet; id: int64): Texture {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc tileSetMaterial(self: TileSet; id: int64; material: ShaderMaterial) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetMaterial(self: TileSet; id: int64): ShaderMaterial {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc tileSetTextureOffset(self: TileSet; id: int64; textureOffset: Vector2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetTextureOffset(self: TileSet; id: int64): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetRegion(self: TileSet; id: int64; region: Rect2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetRegion(self: TileSet; id: int64): Rect2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetShape(self: TileSet; id: int64; shapeId: int64; shape: Shape2D) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetShape(self: TileSet; id: int64; shapeId: int64): Shape2D {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc tileSetShapeTransform(self: TileSet; id: int64; shapeId: int64;
                          shapeTransform: Transform2D) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetShapeTransform(self: TileSet; id: int64; shapeId: int64): Transform2D {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetShapeOneWay(self: TileSet; id: int64; shapeId: int64; oneWay: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetShapeOneWay(self: TileSet; id: int64; shapeId: int64): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileAddShape(self: TileSet; id: int64; shape: Shape2D;
                 shapeTransform: Transform2D; oneWay: bool = false;
                 autotileCoord: Vector2 = vec2(0.0, 0.0)) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetShapeCount(self: TileSet; id: int64): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetShapes(self: TileSet; id: int64; shapes: Array) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetShapes(self: TileSet; id: int64): Array {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetTileMode(self: TileSet; id: int64; tilemode: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetTileMode(self: TileSet; id: int64): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetNavigationPolygon(self: TileSet; id: int64;
                             navigationPolygon: NavigationPolygon) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetNavigationPolygon(self: TileSet; id: int64): NavigationPolygon {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc tileSetNavigationPolygonOffset(self: TileSet; id: int64;
                                   navigationPolygonOffset: Vector2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetNavigationPolygonOffset(self: TileSet; id: int64): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetLightOccluder(self: TileSet; id: int64; lightOccluder: OccluderPolygon2D) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetLightOccluder(self: TileSet; id: int64): OccluderPolygon2D {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc tileSetOccluderOffset(self: TileSet; id: int64; occluderOffset: Vector2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetOccluderOffset(self: TileSet; id: int64): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileSetZIndex(self: TileSet; id: int64; zIndex: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc tileGetZIndex(self: TileSet; id: int64): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc removeTile(self: TileSet; id: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc clear(self: TileSet) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getLastUnusedTileId(self: TileSet): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc findTileByName(self: TileSet; name: string): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getTilesIds(self: TileSet): Array {.
gcsafe, locks: 0, raises: [], tags: []
.}

Methods

method isTileBound(self: TileSet; drawnId: int64; neighborId: int64): bool {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method forwardSubtileSelection(self: TileSet; autotileId: int64; bitmask: int64;
                              tilemap: Object; tileLocation: Vector2): Vector2 {.
gcsafe, locks: 0, base, raises: [], tags: []
.}