summaryrefslogtreecommitdiffhomepage
path: root/deprecated/components/06_collidable.rb
blob: 4fde63873d16b85fd9cb97bce7742f6896191fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

class Components
  # If an entity can be rendered on screen
  class Collidable < Helper::BaseComponent
    class << self
    end
    attr_accessor :grid

    def initialize
      @grid = [[]]
    end

    def set(**opts)
      opts.each do |key, value|
        send "#{key}=", value
      end
    end
  end
end