mirror of
https://github.com/CompeyDev/rusty-luau.git
synced 2024-12-12 04:40:40 +00:00
chore: apply formatting
This commit is contained in:
parent
660806dff8
commit
814fc51e16
1 changed files with 10 additions and 7 deletions
|
@ -1,6 +1,9 @@
|
|||
local isRoblox = _VERSION == "Luau"
|
||||
local isLune = _VERSION:find("Lune") == 1
|
||||
local deps = if isLune then require("../deps") elseif isRoblox then require(script.Parent.deps) else error("Unsupported Runtime!")
|
||||
local deps = if isLune
|
||||
then require("../deps")
|
||||
elseif isRoblox then require(script.Parent.deps)
|
||||
else error("Unsupported Runtime!")
|
||||
local requires = deps(isRoblox, isLune)
|
||||
|
||||
local LuauSignal: {
|
||||
|
@ -53,7 +56,7 @@ end
|
|||
|
||||
local RobloxEvent = {}
|
||||
type RobloxEvent<T...> = Signal<T...> & {
|
||||
_inner: BindableEvent
|
||||
_inner: BindableEvent,
|
||||
}
|
||||
|
||||
function RobloxEvent.new<T...>()
|
||||
|
@ -62,9 +65,9 @@ function RobloxEvent.new<T...>()
|
|||
instance.Name = tostring({}):split(" ")[2]
|
||||
|
||||
return setmetatable({
|
||||
_inner = instance
|
||||
_inner = instance,
|
||||
}, {
|
||||
__index = RobloxEvent
|
||||
__index = RobloxEvent,
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -79,7 +82,7 @@ function RobloxEvent.Connect<T...>(self: RobloxEvent<T...>, callback: (T...) ->
|
|||
DisconnectAll = function<T...>(self: RobloxEvent<T...>)
|
||||
conn:Disconnect()
|
||||
self._inner:Destroy()
|
||||
end
|
||||
end,
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -90,7 +93,7 @@ function RobloxEvent.Once<T...>(self: RobloxEvent<T...>, callback: (T...) -> ())
|
|||
DisconnectAll = function<T...>(self: RobloxEvent<T...>)
|
||||
conn:Disconnect()
|
||||
self._inner:Destroy()
|
||||
end
|
||||
end,
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue