> For the complete documentation index, see [llms.txt](https://enls.gitbook.io/rgss-reference-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://enls.gitbook.io/rgss-reference-manual/game-library/rpgxp-data-structures/rpg-tileset.md).

# RPG::Tileset

## Superclass

* [Object](/rgss-reference-manual/standard-library/built-in-classes/object.md)

## Attributes

### id

The tileset ID.

### name

The tileset name.

### tileset\_name

The tileset's graphic file name.

### autotile\_names

The autotile graphic's file name array (\[0]..\[6]).

### panorama\_name

The panorama graphic file name.

### panorama\_hue

The adjustment value for the panorama graphic's hue (0..360).

### fog\_name

The fog graphic's file name.

### fog\_hue

The adjustment value for the fog graphic's hue (0..360).

### fog\_opacity

The fog's opacity.

### fog\_blend\_type

The fog's blending mode.

### fog\_zoom

The fog's zoom level.

### fog\_sx

The fog's SX (automatic X-axis scrolling speed).

### fog\_sy

The fog's SY (automatic Y-axis scrolling speed).

### battleback\_name

The battle background's graphic file name.

### passages

Passage table. A 1-dimensional array ([Table](/rgss-reference-manual/game-library/rgss-built-in-classes/table.md)) containing passage flags, Bush flags, and counter flags.

The tile ID is used as a subscript. Each bit is handled as follows:

* 0x01: Cannot move down.
* 0x02: Cannot move left.
* 0x04: Cannot move right.
* 0x08: Cannot move up.
* 0x40: Bush flag.
* 0x80: Counter flag.

### priorities

Priority table. A 1-dimensional array ([Table](/rgss-reference-manual/game-library/rgss-built-in-classes/table.md)) containing priority data.

The tile ID is used as a subscript.

### terrain\_tags

Terrain tag table A 1-dimensional array ([Table](/rgss-reference-manual/game-library/rgss-built-in-classes/table.md)) containing terrain tag data.

The tile ID is used as a subscript.

## Definition

```ruby
module RPG
  class Tileset
    def initialize
      @id = 0
      @name = ""
      @tileset_name = ""
      @autotile_names = [""]*7
      @panorama_name = ""
      @panorama_hue = 0
      @fog_name = ""
      @fog_hue = 0
      @fog_opacity = 64
      @fog_blend_type = 0
      @fog_zoom = 200
      @fog_sx = 0
      @fog_sy = 0
      @battleback_name = ""
      @passages = Table.new(384)
      @priorities = Table.new(384)
      @priorities[0] = 5
      @terrain_tags = Table.new(384)
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :tileset_name
    attr_accessor :autotile_names
    attr_accessor :panorama_name
    attr_accessor :panorama_hue
    attr_accessor :fog_name
    attr_accessor :fog_hue
    attr_accessor :fog_opacity
    attr_accessor :fog_blend_type
    attr_accessor :fog_zoom
    attr_accessor :fog_sx
    attr_accessor :fog_sy
    attr_accessor :battleback_name
    attr_accessor :passages
    attr_accessor :priorities
    attr_accessor :terrain_tags
  end
end
```
