Tiled::Layer
Constructors
Class methods
Instance 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
data
Sourcedata=(data : Data | Nil)
Sourceheight
Sourceid
Sourcename
Sourceoffsetx
Sourceoffsety
Sourceopacity
Sourceparallaxx
Sourceparallaxy
Sourceproperties
Sourceproperties=(properties : Properties | Nil)
Sourcetintcolor
Sourcevisible
Sourcewidth
Source