mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-16 00:02:33 +00:00
added on_order handler to entities and components, added visibility map
This commit is contained in:
@@ -33,6 +33,13 @@ class IMICRTS
|
||||
end
|
||||
end
|
||||
|
||||
def on_order(type, order)
|
||||
case type
|
||||
when IMICRTS::Order::CONSTRUCTION_COMPLETE
|
||||
data.construction_complete = true
|
||||
end
|
||||
end
|
||||
|
||||
def construction_complete?
|
||||
data.construction_progress >= data.construction_goal && data.construction_complete
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user