Tiled::Map
Inherits Struct / Value / Object
Constructors
new(version : String, tiledversion : String, width : UInt32, height : UInt32, tilewidth : UInt32, tileheight : UInt32, nextlayerid : UInt32, nextobjectid : UInt32)
SourceClass methods
parse_from_node(node : XML::Node)
SourceInstance methods
array_group
Sourcearray_group=(array_group : Array(Group))
Sourcearray_imagelayer
Sourcearray_imagelayer=(array_imagelayer : Array(ImageLayer))
Sourcearray_layer
Sourcearray_layer=(array_layer : Array(Layer))
Sourcearray_objectgroup
Sourcearray_objectgroup=(array_objectgroup : Array(ObjectGroup))
Sourcebackgroundcolor
Sourcebackgroundcolor=(backgroundcolor : String)
Sourceclass
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
class=(class __arg0 : String)
Sourcecompressionlevel
Sourcecompressionlevel=(compressionlevel : Int32)
Sourceheight
Sourceheight=(height : UInt32)
Sourcehexsidelength
Sourcehexsidelength=(hexsidelength : UInt32)
Sourceinfinite
Sourceinfinite=(infinite : Bool)
Sourcenextlayerid
Sourcenextlayerid=(nextlayerid : UInt32)
Sourcenextobjectid
Sourcenextobjectid=(nextobjectid : UInt32)
Sourceorientation
Sourceorientation=(orientation : String)
Sourceparallaxoriginx
Sourceparallaxoriginx=(parallaxoriginx : Float32)
Sourceparallaxoriginy
Sourceparallaxoriginy=(parallaxoriginy : Float32)
Sourceproperties
Sourceproperties=(properties : Properties | Nil)
Sourcerenderorder
Sourcerenderorder=(renderorder : String)
Sourcestaggeraxis
Sourcestaggeraxis=(staggeraxis : String)
Sourcestaggerindex
Sourcestaggerindex=(staggerindex : String)
Sourcetiledversion
Sourcetiledversion=(tiledversion : String)
Sourcetileheight
Sourcetileheight=(tileheight : UInt32)
Sourcetilewidth
Sourcetilewidth=(tilewidth : UInt32)
Sourceversion
Sourceversion=(version : String)
Sourcewidth
Sourcewidth=(width : UInt32)
Source