Sha256: 5375b6f288310a3cc7f0610bb8dda7ab78bdde8db0e6d65c4db7f52fa716589f

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

require_relative 'system'

module Baku
  class TagSystem < System
    attr_reader :tag
    
    def initialize(tag, game_loop_step)
      @tag = tag
      @game_loop_step = game_loop_step
    end

    def process_entities(entities)
      entities.each do |entity|
        process_entity(entity)
      end
    end
    
    protected
    
    def retrieve_entities
      @world.entity_manager.get_entities_by_tag(@tag)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
baku-0.3.1 lib/baku/tag_system.rb
baku-1.0.0 lib/baku/tag_system.rb
baku-0.3.0 lib/baku/tag_system.rb