mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 07:42:34 +00:00
14 lines
254 B
Ruby
14 lines
254 B
Ruby
class IMICRTS
|
|
class BuildQueue < Component
|
|
attr_reader :queue
|
|
|
|
Item = Struct.new(:entity, :progress, :completed)
|
|
def setup
|
|
@queue = []
|
|
end
|
|
|
|
def add(type)
|
|
@queue << Item.new(Entity.get(type), 0.0, false)
|
|
end
|
|
end
|
|
end |