class SK::TMX::MapLayerObject

Attributes

height[RW]
rotation[RW]
type[RW]
width[RW]
x[RW]
y[RW]

Public Class Methods

new(json) click to toggle source
# File lib/shirokuro/standard_components/tmx/tmx_map_layer_object.rb, line 7
def initialize json
        @x = json["x"].to_f
        @y = json["y"].to_f 
        @width = json["width"].to_f
        @height = json["height"].to_f       
        @rotation = json["rotation"].to_f
        @type = json["type"]
end