mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 07:00:03 +00:00
fix types & unreliable
This commit is contained in:
parent
3e34c9cce9
commit
c12356af4e
8 changed files with 10 additions and 14 deletions
BIN
Warp.rbxm
BIN
Warp.rbxm
Binary file not shown.
BIN
WarpPlayground.rbxl
Normal file
BIN
WarpPlayground.rbxl
Normal file
Binary file not shown.
|
@ -18,9 +18,6 @@ local clientRequestQueue: Type.QueueMap = {}
|
|||
local queueIn: {
|
||||
[string]: {any}
|
||||
} = {}
|
||||
local queueInRequest: {
|
||||
[string]: {any}
|
||||
} = {}
|
||||
local queueInRequest: {
|
||||
[number]: {
|
||||
[string]: {
|
|
@ -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)
|
||||
|
|
|
@ -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
|
|
@ -1,7 +1,7 @@
|
|||
--!strict
|
||||
export type rateLimitArg = {
|
||||
maxEntrance: number,
|
||||
interval: number,
|
||||
maxEntrance: number?,
|
||||
interval: number?,
|
||||
}
|
||||
|
||||
export type Client = {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-- Warp Library (@Eternity_Devs)
|
||||
-- version 1.0
|
||||
-- version 1.0.2
|
||||
--!strict
|
||||
--!native
|
||||
local Index = require(script.Index)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue