mirror of
https://github.com/simisimis/blinkmeter.git
synced 2025-12-06 08:42:26 +02:00
13 lines
196 B
Lua
13 lines
196 B
Lua
Counter = {counter = 0}
|
|
function Counter:increment()
|
|
self.counter = self.counter + 1
|
|
end
|
|
|
|
function Counter:reset()
|
|
self.counter = 0
|
|
end
|
|
|
|
function Counter:get()
|
|
return self.counter
|
|
end
|