mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Added last 2 units, added sidebar actions and build queue components, entities can now have their build actions put on the sidebar
This commit is contained in:
@@ -7,7 +7,7 @@ class IMICRTS
|
||||
end
|
||||
|
||||
def self.inherited(klass)
|
||||
name = klass.to_s.split("::").last.downcase.to_sym
|
||||
name = klass.to_s.split("::").last.gsub(/([^A-Z])([A-Z]+)/,'\1_\2').downcase.to_sym
|
||||
|
||||
if get(name)
|
||||
raise "#{klass.inspect} is already defined!"
|
||||
|
||||
Reference in New Issue
Block a user