summaryrefslogtreecommitdiffhomepage
path: root/deprecated/components/04_map.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-06-12 03:15:59 -0400
committerrealtradam <[email protected]>2021-06-12 03:15:59 -0400
commit795cb85e284d6adc83d8a8770e1e2406322f4034 (patch)
tree1fe065f7f5ecfaf9bc34638cc5a5dd7fe848eb3e /deprecated/components/04_map.rb
parent6e9ff64fec30779eb894a617af95ce7815e3d1ca (diff)
downloadFelECS-795cb85e284d6adc83d8a8770e1e2406322f4034.tar.gz
FelECS-795cb85e284d6adc83d8a8770e1e2406322f4034.zip
file cleanup
Diffstat (limited to 'deprecated/components/04_map.rb')
-rw-r--r--deprecated/components/04_map.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/deprecated/components/04_map.rb b/deprecated/components/04_map.rb
new file mode 100644
index 0000000..7700e9f
--- /dev/null
+++ b/deprecated/components/04_map.rb
@@ -0,0 +1,21 @@
+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