API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typePackedTile

@codexo/exojs-tilemap / tilemap / stable

Opaque packed tile data stored in a TileChunk's compact array. 0 means "empty cell". Any non-zero value encodes localTileId, tilesetIndex, and flip bits according to the bit-layout constants below. A `PackedTile` is **not** a source-format GID - it is a fully resolved internal compact representation. Use packTile / unpackTile to convert between packed form and a ResolvedTile if writing adapters. In public APIs, prefer ResolvedTile or null for queries. `PackedTile` is exposed as `@advanced` so `ReadonlyTileChunk.getRawAt()` has a self-documenting return type.

0
props
0
methods
0
events
Import
import { PackedTile } from '@codexo/exojs-tilemap'

Opaque packed tile data stored in a TileChunk's compact array. 0 means "empty cell". Any non-zero value encodes localTileId, tilesetIndex, and flip bits according to the bit-layout constants below.

A `PackedTile` is **not** a source-format GID - it is a fully resolved internal compact representation. Use packTile / unpackTile to convert between packed form and a ResolvedTile if writing adapters.

In public APIs, prefer ResolvedTile or null for queries. `PackedTile` is exposed as `@advanced` so `ReadonlyTileChunk.getRawAt()` has a self-documenting return type.

Definition1
number
Source