Skip to content

Commit

Permalink
fix types & unreliable
Browse files Browse the repository at this point in the history
  • Loading branch information
imezx committed Jan 9, 2024
1 parent 3e34c9c commit c12356a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
Binary file modified Warp.rbxm
Binary file not shown.
Binary file added WarpPlayground.rbxl
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ local clientRequestQueue: Type.QueueMap = {}
local queueIn: {
[string]: {any}
} = {}
local queueInRequest: {
[string]: {any}
} = {}
local queueInRequest: {
[number]: {
[string]: {
Expand Down
1 change: 0 additions & 1 deletion src/Index/Client/Index.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions src/Index/Event.luau
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/Index/Type.luau
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--!strict
export type rateLimitArg = {
maxEntrance: number,
interval: number,
maxEntrance: number?,
interval: number?,
}

export type Client = {
Expand Down
2 changes: 1 addition & 1 deletion src/init.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Warp Library (@Eternity_Devs)
-- version 1.0
-- version 1.0.2
--!strict
--!native
local Index = require(script.Index)
Expand Down
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c12356a

Please sign in to comment.