diff --git a/Warp.rbxm b/Warp.rbxm index 31dcc63..d820361 100644 Binary files a/Warp.rbxm and b/Warp.rbxm differ diff --git a/WarpPlayground.rbxl b/WarpPlayground.rbxl new file mode 100644 index 0000000..70eca13 Binary files /dev/null and b/WarpPlayground.rbxl differ diff --git a/src/Index/Client/ServerProcess.luau b/src/Index/Client/ClientProcess.luau similarity index 98% rename from src/Index/Client/ServerProcess.luau rename to src/Index/Client/ClientProcess.luau index 0baa3a3..082d9e9 100644 --- a/src/Index/Client/ServerProcess.luau +++ b/src/Index/Client/ClientProcess.luau @@ -18,9 +18,6 @@ local clientRequestQueue: Type.QueueMap = {} local queueIn: { [string]: {any} } = {} -local queueInRequest: { - [string]: {any} -} = {} local queueInRequest: { [number]: { [string]: { diff --git a/src/Index/Client/Index.luau b/src/Index/Client/Index.luau index b0c999c..ff64856 100644 --- a/src/Index/Client/Index.luau +++ b/src/Index/Client/Index.luau @@ -5,7 +5,6 @@ Client.__index = Client local Players = game:GetService("Players") local Util = script.Parent.Parent.Util -local Type = require(script.Parent.Parent.Type) local ClientProcess = require(script.Parent.ClientProcess) local Assert = require(Util.Assert) local Key = require(Util.Key) diff --git a/src/Index/Event.luau b/src/Index/Event.luau index a512d27..c963dc5 100644 --- a/src/Index/Event.luau +++ b/src/Index/Event.luau @@ -4,20 +4,20 @@ local Type = require(script.Parent.Type) if RunService:IsServer() then if not script:FindFirstChild("Event") then - Instance.new("RemoteEvent", script).Name = "Event" + Instance.new("RemoteEvent", script).Name = "Reliable" end if not script:FindFirstChild("Event2") then - Instance.new("RemoteEvent", script).Name = "Event2" + Instance.new("UnreliableRemoteEvent", script).Name = "Unreliable" end if not script:FindFirstChild("Request") then Instance.new("RemoteEvent", script).Name = "Request" end -elseif not script:FindFirstChild("Event") or not script:FindFirstChild("Event2") or not script:FindFirstChild("Request") then - repeat task.wait() until script:FindFirstChild("Event") and script:FindFirstChild("Event2") and script:FindFirstChild("Request") +elseif not script:FindFirstChild("Reliable") or not script:FindFirstChild("Unreliable") or not script:FindFirstChild("Request") then + repeat task.wait() until script:FindFirstChild("Reliable") and script:FindFirstChild("Unreliable") and script:FindFirstChild("Request") end return { - Reliable = script.Event, - Unreliable = script.Event2, + Reliable = script.Reliable, + Unreliable = script.Unreliable, Request = script.Request } :: Type.Event \ No newline at end of file diff --git a/src/Index/Type.luau b/src/Index/Type.luau index d8eba87..1946e11 100644 --- a/src/Index/Type.luau +++ b/src/Index/Type.luau @@ -1,7 +1,7 @@ --!strict export type rateLimitArg = { - maxEntrance: number, - interval: number, + maxEntrance: number?, + interval: number?, } export type Client = { diff --git a/src/init.luau b/src/init.luau index c6f5341..2489d3b 100644 --- a/src/init.luau +++ b/src/init.luau @@ -1,5 +1,5 @@ -- Warp Library (@Eternity_Devs) --- version 1.0 +-- version 1.0.2 --!strict --!native local Index = require(script.Index) diff --git a/wally.toml b/wally.toml index f6c45f2..b5c002b 100644 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "imezx/warp" -version = "1.0.1" +version = "1.0.2" registry = "https://github.com/UpliftGames/wally-index" realm = "shared" license = "MIT"