RPG::Tileset
Data class for tilesets.
Superclass
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) 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) containing priority data.
The tile ID is used as a subscript.
terrain_tags
Terrain tag table A 1-dimensional array (Table) containing terrain tag data.
The tile ID is used as a subscript.
Definition
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
Last updated