Added building component, refactored components to have setup, draw, update and tick methods, added fencing for building construction area parimeter, misc other changes.

This commit is contained in:
2019-12-17 15:40:26 -06:00
parent ba40645e23
commit e5579f48f1
19 changed files with 404 additions and 24 deletions

View File

@@ -12,10 +12,13 @@ class IMICRTS
@hash[key.to_sym] = value
end
def method_missing(method)
def method_missing(method, argument = nil)
if value = @hash.dig(method)
value
elsif argument != nil
@hash[method.to_s.sub("=", "").to_sym] = argument
else
return false unless argument # May result in bugginess!
raise "Unknown value for: #{method}"
end
end