feat: Added createdAsync
This commit is contained in:
parent
c6491b626a
commit
aabdb85ee7
2 changed files with 22 additions and 12 deletions
|
|
@ -85,8 +85,8 @@ function module.init(shared)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- when created binding
|
-- when created binding
|
||||||
new.created = prefix .. "Created::";
|
new.createdAsync = prefix .. "CreatedAsync::";
|
||||||
new.createdSync = prefix .. "CreatedSync::";
|
new.created = prefix .. "CreatedSync::";
|
||||||
|
|
||||||
-- roblox connections disconnecter
|
-- roblox connections disconnecter
|
||||||
local insert = table.insert;
|
local insert = table.insert;
|
||||||
|
|
|
||||||
|
|
@ -117,22 +117,32 @@ function module.init(shared)
|
||||||
insert(event,efunc);
|
insert(event,efunc);
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
with = function (s,efunc)
|
with = function (s,wfunc)
|
||||||
return setmetatable({wfunc = efunc},{__index = s});
|
-- s.wfunc = wfunc;
|
||||||
|
-- return s;
|
||||||
|
return setmetatable({wfunc = wfunc},{__index = s});
|
||||||
end;
|
end;
|
||||||
default = function (s,value)
|
default = function (s,dvalue)
|
||||||
return setmetatable({dvalue = value},{__index = s});
|
-- s.dvalue = dvalue;
|
||||||
|
-- return s;
|
||||||
|
return setmetatable({dvalue = dvalue},{__index = s});
|
||||||
end;
|
end;
|
||||||
tween = function (s,value)
|
tween = function (s,tvalue)
|
||||||
return setmetatable({tvalue = value},{__index = s});
|
-- s.tvalue = tvalue;
|
||||||
|
-- return s;
|
||||||
|
return setmetatable({tvalue = tvalue},{__index = s});
|
||||||
end;
|
end;
|
||||||
---@deprecated
|
---@deprecated
|
||||||
from = function (s,value)
|
from = function (s,fvalue)
|
||||||
warn "[QUAD] register:from() is deprecated. You can use register:add(t:table|function) instead";
|
warn "[QUAD] register:from() is deprecated. You can use register:add(t:table|function) instead";
|
||||||
return setmetatable({fvalue = value},{__index = s});
|
-- s.fvalue = fvalue;
|
||||||
|
-- return s;
|
||||||
|
return setmetatable({fvalue = fvalue},{__index = s});
|
||||||
end;
|
end;
|
||||||
add = function (s,value)
|
add = function (s,avalue)
|
||||||
return setmetatable({avalue = value},{__index = s});
|
-- s.avalue = avalue;
|
||||||
|
-- return s;
|
||||||
|
return setmetatable({avalue = avalue},{__index = s});
|
||||||
end;
|
end;
|
||||||
-- return init data
|
-- return init data
|
||||||
calcWithDefault = function (s,withItem)
|
calcWithDefault = function (s,withItem)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue