mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2025-12-16 21:22:33 +00:00
22 lines
319 B
Ruby
22 lines
319 B
Ruby
module CyberarmEngine
|
|
class Stats
|
|
@@hash = {
|
|
gui_recalculations_last_frame: 0
|
|
}
|
|
|
|
def self.get(key)
|
|
@@hash.dig(key)
|
|
end
|
|
|
|
def self.increment(key, n)
|
|
@@hash[key] += n
|
|
end
|
|
|
|
def self.clear
|
|
@@hash.each do |key, _value|
|
|
@@hash[key] = 0
|
|
end
|
|
end
|
|
end
|
|
end
|