class

GSDL::Tileset

Inherits Reference < Object

Constructors

new(texture : GSDL::Texture, tile_width : Int32, tile_height : Int32, first_gid : Int32 = 1)
Source

Instance methods

columns
Source
columns=(columns : Int32)
Source
contains_gid?(global_gid : Int32) : Bool

Checks if a global_gid belongs to this tileset

Source
first_gid
Source
first_gid=(first_gid : Int32)
Source
get_local_tile_source_rect(local_tile_id : Int32) : FRect

Returns the source rectangle for a LOCAL tile ID within this tileset

Source
rows
Source
rows=(rows : Int32)
Source
solid?(local_tile_id : Int32) : Bool
Source
solid_tiles
Source
solid_tiles=(solid_tiles : Array(Int32))
Source
texture
Source
texture=(texture : Texture)
Source
tile_count

The number of tiles in this tileset

Source
tile_height
Source
tile_height=(tile_height : Int32)
Source
tile_width
Source
tile_width=(tile_width : Int32)
Source