Data class for tilesets.
The tileset ID.
The tileset name.
The tileset's graphic file name.
The autotile graphic's file name array ([0]..[6]).
The panorama graphic file name.
The adjustment value for the panorama graphic's hue (0..360).
The fog graphic's file name.
The adjustment value for the fog graphic's hue (0..360).
The fog's opacity.
The fog's blending mode.
The fog's zoom level.
The fog's SX (automatic X-axis scrolling speed).
The fog's SY (automatic Y-axis scrolling speed).
The battle background's graphic file name.
Passage table. A 1-dimensional array (Table) containing passage flags, Bush flags, and counter flags.
The tile ID is used as a subscript. Each bit is handled as follows:
Priority table. A 1-dimensional array (Table) containing priority data.
The tile ID is used as a subscript.
Terrain tag table A 1-dimensional array (Table) containing terrain tag data.
The tile ID is used as a subscript.
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
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |