Skip to content

Releases: CavefulGames/HandyNet

v0.3.0

28 Oct 15:33
Compare
Choose a tag to compare
  • 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

27 Oct 07:10
Compare
Choose a tag to compare
  • Fix dependencies require error (critical bug fixed)

v0.2.2

26 Oct 09:44
Compare
Choose a tag to compare
  • Make README.md english as default.
  • Publish to pesde to take effect with newer README.md.
  • Source code not have been changed.

v0.2.1

25 Oct 17:31
Compare
Choose a tag to compare
  • Fix HandyNet.Enum types and documented.
  • Packet definitions can be nested.

v0.2.0

24 Oct 11:50
Compare
Choose a tag to compare

Major breaking changes

  • Change Packet.onServerReceived and Packet.onClientReceived to Packet.event.
  • Change HandyNet.defineReliablePacket and HandyNet.defineUnreliablePacket to HandyNet.definePacket and provide reliability argument.
  • Replace Commands with Events.
  • Remove Namespace.client and Namespace.server. sendTo, sendToServer, and broadcast are replaced by send.
  • Packets are now one directional.

Added

  • Add BrickColor and Enum data type.
  • Add korean(한국어) docs comments.

v0.1.2

21 Oct 10:35
Compare
Choose a tag to compare
  • Fix critical CFrame serdes bug.

v0.1.1

21 Oct 09:53
Compare
Choose a tag to compare
  • Published to pesde.
  • First release.
  • Basic HandyNet implementation.