Releases: CavefulGames/HandyNet
Releases · CavefulGames/HandyNet
v0.3.0
- Change
math.sqrt
into^.5
(Slightly faster) - Simplify the
defineNamespace
(Breaking change)
-- before
return HandyNet.defineNamespace("example", function()
return {
hello = HandyNet.definePacket(
"client->server",
HandyNet.struct({
message = HandyNet.string(HandyNet.u8), -- Customizable string size (defaults to u16)
cf = HandyNet.CFrame, -- Uses quaternion to compress!
enum = HandyNet.Enum.KeyCode :: Enum.KeyCode -- Weird type error with enums..
})
-- default: "reliable"
),
countUp = HandyNet.defineEvent("unreliable")
}
end)
-- after
return HandyNet.defineNamespace("example", {
hello = HandyNet.definePacket(
"client->server",
HandyNet.struct({
message = HandyNet.string(HandyNet.u8), -- Customizable string size (defaults to u16)
cf = HandyNet.CFrame, -- Uses quaternion to compress!
enum = HandyNet.Enum.KeyCode :: Enum.KeyCode -- Weird type error with enums..
})
-- default: "reliable"
),
countUp = HandyNet.defineEvent("unreliable")
})
v0.2.3
v0.2.2
v0.2.1
v0.2.0
Major breaking changes
- Change
Packet.onServerReceived
andPacket.onClientReceived
toPacket.event
. - Change
HandyNet.defineReliablePacket
andHandyNet.defineUnreliablePacket
toHandyNet.definePacket
and provide reliability argument. - Replace
Command
s withEvent
s. - Remove
Namespace.client
andNamespace.server
.sendTo
,sendToServer
, andbroadcast
are replaced bysend
. Packet
s are now one directional.
Added
- Add
BrickColor
andEnum
data type. - Add korean(한국어) docs comments.