Tiled::Layer
Inherits Struct / Value / Object
Constructors
new(width : UInt32, height : UInt32)
SourceClass methods
parse_from_node(node : XML::Node)
SourceInstance methods
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
class=(class __arg0 : String)
Sourcedata
Sourcedata=(data : Data | Nil)
Sourceheight
Sourceheight=(height : UInt32)
Sourceid
Sourceid=(id : UInt32)
Sourcename
Sourcename=(name : String)
Sourceoffsetx
Sourceoffsetx=(offsetx : Int32)
Sourceoffsety
Sourceoffsety=(offsety : Int32)
Sourceopacity
Sourceopacity=(opacity : Float32)
Sourceparallaxx
Sourceparallaxx=(parallaxx : Float32)
Sourceparallaxy
Sourceparallaxy=(parallaxy : Float32)
Sourceproperties
Sourceproperties=(properties : Properties | Nil)
Sourcetintcolor
Sourcetintcolor=(tintcolor : String)
Sourcevisible
Sourcevisible=(visible : Bool)
Sourcewidth
Sourcewidth=(width : UInt32)
Sourcex=(x : Int32)
Sourcey=(y : Int32)
Source