rapid-render
    Preparing search index...

    Class TileSet

    Represents a tileset that manages tile textures and their properties.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Creates a new TileSet instance.

      Parameters

      • width: number

        The width of each tile in pixels

      • height: number

        The height of each tile in pixels

      Returns TileSet

    Properties

    height: number

    Height of each tile in the tileset

    width: number

    Width of each tile in the tileset

    Methods

    • Retrieves the registered tile options for the given ID.

      Parameters

      • id: string | number

        The unique identifier of the tile to retrieve

      Returns undefined | IRegisterTileOptions

      The registered tile options, or undefined if not found

    • Registers a new tile with the given ID and options.

      Parameters

      Returns void