lr_boilerplate/client/impl/test.impl.lua

20 lines
346 B
Lua
Raw Normal View History

2024-05-31 05:18:24 +07:00
---@class TestImpl : Impl
2023-12-05 13:55:38 +07:00
local Impl = NewImpl("Test")
function Impl:Init()
main:LogInfo("%s initialized", self:GetName())
self.data = {
test = "test"
}
2023-12-05 15:00:07 +07:00
self.testVar = 0
2023-12-05 13:55:38 +07:00
end
function Impl:GetData()
return self.data
2023-12-05 15:00:07 +07:00
end
function Impl:Add(amount, amount2)
self.testVar = self.testVar + amount + amount2
return self.testVar
2024-05-31 05:18:24 +07:00
end