mirror of
https://github.com/simisimis/blinkmeter.git
synced 2025-12-06 08:42:26 +02:00
first commit
This commit is contained in:
12
counter.lua
Normal file
12
counter.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user