class Scar::Tiled::Property

Included Modules

Defined in:

scar/tiled_map.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def name : String #

[View source]
def name=(name : String) #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def value : String | Int32 | Float32 | Bool #

TODO use type field as in https://crystal-lang.org/api/1.1.1/JSON/Serializable.html#use_json_discriminator(field,mapping)-macro


[View source]
def value=(value : String | Int32 | Float32 | Bool) #

TODO use type field as in https://crystal-lang.org/api/1.1.1/JSON/Serializable.html#use_json_discriminator(field,mapping)-macro


[View source]