Sha256: 721cb0d783c10b43f00b922e4c7cc5ac29c5a0b7dc41b9ab39c2a647b59c7d4e

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
felflame-1.0.1 deprecated/components/06_collidable.rb
felflame-1.0.0 deprecated/components/06_collidable.rb