struct

Tiled::Map

Inherits Struct / Value / Object

Constructors

new(version : String, tiledversion : String, width : UInt32, height : UInt32, tilewidth : UInt32, tileheight : UInt32, nextlayerid : UInt32, nextobjectid : UInt32)
Source

Class methods

parse_from_node(node : XML::Node)
Source

Instance methods

array_group
Source
array_group=(array_group : Array(Group))
Source
array_imagelayer
Source
array_imagelayer=(array_imagelayer : Array(ImageLayer))
Source
array_layer
Source
array_layer=(array_layer : Array(Layer))
Source
array_objectgroup
Source
array_objectgroup=(array_objectgroup : Array(ObjectGroup))
Source
array_tileset

Skipped: editorsettings

Source
array_tileset=(array_tileset : Array(Tileset))

Skipped: editorsettings

Source
backgroundcolor
Source
backgroundcolor=(backgroundcolor : String)
Source
class

Returns the runtime Class of an object.

1.class       # => Int32
"hello".class # => String

Compare it with typeof, which returns the compile-time type of an object:

random_value = rand # => 0.627423
value = random_value < 0.5 ? 1 : "hello"
value         # => "hello"
value.class   # => String
typeof(value) # => Int32 | String
Source
class=(class __arg0 : String)
Source
compressionlevel
Source
compressionlevel=(compressionlevel : Int32)
Source
height
Source
height=(height : UInt32)
Source
hexsidelength
Source
hexsidelength=(hexsidelength : UInt32)
Source
infinite
Source
infinite=(infinite : Bool)
Source
nextlayerid
Source
nextlayerid=(nextlayerid : UInt32)
Source
nextobjectid
Source
nextobjectid=(nextobjectid : UInt32)
Source
orientation
Source
orientation=(orientation : String)
Source
parallaxoriginx
Source
parallaxoriginx=(parallaxoriginx : Float32)
Source
parallaxoriginy
Source
parallaxoriginy=(parallaxoriginy : Float32)
Source
properties
Source
properties=(properties : Properties | Nil)
Source
renderorder
Source
renderorder=(renderorder : String)
Source
staggeraxis
Source
staggeraxis=(staggeraxis : String)
Source
staggerindex
Source
staggerindex=(staggerindex : String)
Source
tiledversion
Source
tiledversion=(tiledversion : String)
Source
tileheight
Source
tileheight=(tileheight : UInt32)
Source
tilewidth
Source
tilewidth=(tilewidth : UInt32)
Source
version
Source
version=(version : String)
Source
width
Source
width=(width : UInt32)
Source