struct

Tiled::Layer

Inherits Struct / Value / Object

Constructors

new(width : UInt32, height : UInt32)
Source

Class methods

parse_from_node(node : XML::Node)
Source

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
Source
class=(class __arg0 : String)
Source
data
Source
data=(data : Data | Nil)
Source
height
Source
height=(height : UInt32)
Source
id=(id : UInt32)
Source
name
Source
name=(name : String)
Source
offsetx
Source
offsetx=(offsetx : Int32)
Source
offsety
Source
offsety=(offsety : Int32)
Source
opacity
Source
opacity=(opacity : Float32)
Source
parallaxx
Source
parallaxx=(parallaxx : Float32)
Source
parallaxy
Source
parallaxy=(parallaxy : Float32)
Source
properties
Source
properties=(properties : Properties | Nil)
Source
tintcolor
Source
tintcolor=(tintcolor : String)
Source
visible
Source
visible=(visible : Bool)
Source
width
Source
width=(width : UInt32)
Source
x=(x : Int32)
Source
y=(y : Int32)
Source

Nested types