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