summaryrefslogtreecommitdiffhomepage
path: root/deprecated/components/06_collidable.rb
blob: 76ce51ee5db14a71de3889c690566775d9ae46b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Components
  # If an entity can be rendered on screen
  class Collidable < Helper::BaseComponent
    class <<self
      def add(entity_id)
        super(entity_id)
        #add to grid?
      end
    end
    attr_accessor :grid

    def initialize
      @grid = [[]]
    end

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