mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Building units now uses orders 😃
This commit is contained in:
@@ -2,13 +2,13 @@ class IMICRTS
|
||||
class BuildQueue < Component
|
||||
attr_reader :queue
|
||||
|
||||
Item = Struct.new(:entity, :progress)
|
||||
Item = Struct.new(:entity, :progress, :completed)
|
||||
def setup
|
||||
@queue = []
|
||||
end
|
||||
|
||||
def add(type)
|
||||
@queue << Item.new(Entity.get(type), 0.0)
|
||||
@queue << Item.new(Entity.get(type), 0.0, false)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user