Sha256: 217a8bf5c99a4faa04056105d6e2457548fb9647e59c805cc70a8bcf82958551

Contents?: true

Size: 627 Bytes

Versions: 2

Compression:

Stored size: 627 Bytes

Contents

class Components
  # dragonruby label wrapper
  class Map < Helper::BaseComponent

    attr_accessor :json_name, :json, :x, :y, :tilewidth, :tileheight, :a, :r, :g, :b

    def set(json_name: @json_name, x: @x, y: @y, tilewidth: @tilewidth,
            tileheight: @tileheight, a: @a, r: @r, g: @g, b: @b)
      { json_name: @json_name = json_name,
        json: @json = Helper.get_json_tiles(json_name),
        x: @x = x,
        y: @y = y,
        tilewidth: @tilewidth = tilewidth,
        tileheight: @tileheight = tileheight,
        r: @r = r,
        g: @g = g,
        b: @b = b,
        a: @a = a }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
felflame-1.0.1 deprecated/components/04_map.rb
felflame-1.0.0 deprecated/components/04_map.rb