1
0
Fork 0
forked from Simnation/Main
Main/resources/[voice]/saltychat/client/models/Sound.lua
2025-06-07 08:51:21 +02:00

17 lines
No EOL
341 B
Lua

---@class Sound
---@field Filename string
---@field IsLoop boolean
---@field Handle string
Sound = {}
Sound.__index = Sound
function Sound.new(filename, loop, handle)
local self = setmetatable({}, Sound)
self.Filename = filename
self.IsLoop = loop
if handle then
self.Handle = handle
else
self.Handle = filename
end
end