struct

Tiled::Group

Inherits Struct / Value / Object

Constructors

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
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
id=(id : UInt32)
Source
initialize
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