cluaupp 1.0.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/README.md +28 -16
- package/editors/vscode/extension.js +8 -31
- package/editors/vscode/package.json +2 -2
- package/examples/README.md +5 -6
- package/examples/game/.vscode/extensions.json +2 -1
- package/examples/game/default.project.json +16 -11
- package/examples/game/include/clpp/datatypes.clh +611 -0
- package/examples/game/include/clpp/generated/enums.clh +4920 -0
- package/examples/game/include/clpp/generated/instances.clh +87111 -0
- package/examples/game/include/clpp/libs/arrayindexer.clh +12 -0
- package/examples/game/include/clpp/libs/axiom.clh +154 -0
- package/examples/game/include/clpp/libs/bloom.clh +58 -0
- package/examples/game/include/clpp/libs/coil.clh +37 -0
- package/examples/game/include/clpp/libs/crest.clh +22 -0
- package/examples/game/include/clpp/libs/echo.clh +52 -0
- package/examples/game/include/clpp/libs/ember.clh +17 -0
- package/examples/game/include/clpp/libs/flare.clh +65 -0
- package/examples/game/include/clpp/libs/gleam.clh +111 -0
- package/examples/game/include/clpp/libs/guide.clh +42 -0
- package/examples/game/include/clpp/libs/helm.clh +31 -0
- package/examples/game/include/clpp/libs/hive.clh +20 -0
- package/examples/game/include/clpp/libs/keep.clh +158 -0
- package/examples/game/include/clpp/libs/lens.clh +24 -0
- package/examples/game/include/clpp/libs/mint.clh +28 -0
- package/examples/game/include/clpp/libs/net.clh +31 -0
- package/examples/game/include/clpp/libs/occlude.clh +15 -0
- package/examples/game/include/clpp/libs/pin.clh +28 -0
- package/examples/game/include/clpp/libs/promise.clh +24 -0
- package/examples/game/include/clpp/libs/roster.clh +117 -0
- package/examples/game/include/clpp/libs/shift.clh +22 -0
- package/examples/game/include/clpp/libs/spark.clh +28 -0
- package/examples/game/include/clpp/libs/stage.clh +23 -0
- package/examples/game/include/clpp/libs/sweep.clh +23 -0
- package/examples/game/include/clpp/libs/trace.clh +18 -0
- package/examples/game/include/clpp/libs/ward.clh +18 -0
- package/examples/game/include/clpp/libs.clh +31 -0
- package/examples/game/include/clpp/roblox.clh +42 -0
- package/examples/game/src/ReplicatedFirst/Loading/.gitkeep +1 -0
- package/examples/game/src/ReplicatedStorage/Shared/Constants/Classes/.gitkeep +1 -0
- package/examples/game/src/ReplicatedStorage/Shared/Constants/Datas/TemplateData.clh +40 -0
- package/examples/game/src/ReplicatedStorage/Shared/Constants/Primitives/.gitkeep +1 -0
- package/examples/game/src/ReplicatedStorage/Shared/Modules/.gitkeep +1 -0
- package/examples/game/src/ReplicatedStorage/Shared/Net/.gitkeep +1 -0
- package/examples/game/src/ReplicatedStorage/Shared/Services/.gitkeep +1 -0
- package/examples/game/src/ReplicatedStorage/Shared/Types/.gitkeep +1 -0
- package/examples/game/src/ReplicatedStorage/Shared/Utils/.gitkeep +1 -0
- package/examples/game/src/ServerScriptService/Boot/DataBoot.server.clpp +13 -0
- package/examples/game/src/ServerScriptService/Components/.gitkeep +1 -0
- package/examples/game/src/ServerScriptService/Configuration/ServerConfig.clp +4 -0
- package/examples/game/src/ServerScriptService/Handlers/Guard.server.clpp +7 -0
- package/examples/game/src/ServerScriptService/Handlers/PlayerHandler.server.clpp +23 -0
- package/examples/game/src/ServerScriptService/Services/.gitkeep +1 -0
- package/examples/game/src/ServerStorage/Configuration/.gitkeep +1 -0
- package/examples/game/src/ServerStorage/Modules/.gitkeep +1 -0
- package/{templates/game/src/client/init.client.clpp → examples/game/src/StarterPlayer/StarterCharacterScripts/Character/CharacterReady.client.clpp} +1 -1
- package/examples/game/src/StarterPlayer/StarterCharacterScripts/Combat/.gitkeep +1 -0
- package/examples/game/src/StarterPlayer/StarterCharacterScripts/Movement/.gitkeep +1 -0
- package/examples/game/src/StarterPlayer/StarterPlayerScripts/Controllers/DataController.client.clpp +7 -0
- package/examples/game/src/StarterPlayer/StarterPlayerScripts/Input/.gitkeep +1 -0
- package/examples/game/src/StarterPlayer/StarterPlayerScripts/UI/.gitkeep +1 -0
- package/examples/game/wally.toml +3 -3
- package/generated/cli.js +8 -2
- package/generated/clpp/contract.js +4 -3
- package/generated/clpp/index.js +3 -1
- package/generated/clpp/paths.js +2 -3
- package/generated/clpp/postprocess.js +64 -6
- package/generated/clpp/runner.js +167 -16
- package/generated/compile.js +30 -10
- package/generated/flare/emit.js +222 -0
- package/generated/flare/index.js +58 -0
- package/generated/flare/parse.js +130 -0
- package/generated/flare/types.js +2 -0
- package/generated/intellisense.js +4 -16
- package/generated/libs.js +146 -75
- package/generated/lsp.js +6 -30
- package/generated/native/index.js +482 -0
- package/generated/transpile.js +4 -0
- package/generated/utils/project.js +192 -46
- package/generated/utils/rojo-mapper.js +12 -6
- package/include/clpp/datatypes.clh +40 -14
- package/include/clpp/generated/instances.clh +79876 -5254
- package/include/clpp/libs/arrayindexer.clh +12 -0
- package/include/clpp/libs/axiom.clh +154 -0
- package/include/clpp/libs/bloom.clh +58 -0
- package/include/clpp/libs/coil.clh +37 -0
- package/include/clpp/libs/crest.clh +22 -0
- package/include/clpp/libs/echo.clh +52 -0
- package/include/clpp/libs/ember.clh +17 -0
- package/include/clpp/libs/flare.clh +65 -0
- package/include/clpp/libs/gleam.clh +111 -0
- package/include/clpp/libs/guide.clh +42 -0
- package/include/clpp/libs/helm.clh +31 -0
- package/include/clpp/libs/hive.clh +20 -0
- package/include/clpp/libs/keep.clh +158 -0
- package/include/clpp/libs/lens.clh +24 -0
- package/include/clpp/libs/mint.clh +28 -0
- package/include/clpp/libs/net.clh +31 -40
- package/include/clpp/libs/occlude.clh +15 -0
- package/include/clpp/libs/pin.clh +28 -0
- package/include/clpp/libs/promise.clh +24 -27
- package/include/clpp/libs/roster.clh +117 -0
- package/include/clpp/libs/shift.clh +22 -0
- package/include/clpp/libs/spark.clh +28 -0
- package/include/clpp/libs/stage.clh +23 -0
- package/include/clpp/libs/sweep.clh +23 -0
- package/include/clpp/libs/trace.clh +18 -0
- package/include/clpp/libs/ward.clh +18 -0
- package/include/clpp/libs.clh +24 -17
- package/include/clpp/roblox.clh +21 -10
- package/package.json +9 -18
- package/runtime/ArrayIndexer/init.luau +127 -62
- package/runtime/Axiom/init.luau +605 -0
- package/runtime/Bloom/init.luau +433 -0
- package/runtime/Coil/init.luau +209 -0
- package/runtime/Crest/init.luau +425 -0
- package/runtime/Echo/init.luau +417 -0
- package/runtime/Ember/init.luau +365 -0
- package/runtime/Flare/init.luau +716 -0
- package/runtime/Gleam/init.luau +718 -0
- package/runtime/Guide/init.luau +215 -0
- package/runtime/Helm/init.luau +377 -0
- package/runtime/Hive/init.luau +219 -0
- package/runtime/Keep/Client.luau +114 -0
- package/runtime/{DataService → Keep}/Data.luau +883 -886
- package/runtime/Keep/Engine.luau +211 -0
- package/runtime/Keep/Replicator.luau +298 -0
- package/runtime/Keep/Server.luau +251 -0
- package/runtime/Keep/Store.luau +652 -0
- package/runtime/Keep/Trade.luau +455 -0
- package/runtime/{DataService → Keep}/init.luau +15 -14
- package/runtime/Lens/init.luau +609 -0
- package/runtime/Mint/init.luau +279 -0
- package/runtime/Net/init.luau +33 -2
- package/runtime/Net/src/codec.luau +98 -27
- package/runtime/Occlude/init.luau +64 -1
- package/runtime/Pin/init.luau +306 -0
- package/runtime/Roster/init.luau +678 -0
- package/runtime/SOURCES.md +28 -19
- package/runtime/Shift/init.luau +238 -0
- package/runtime/Spark/init.luau +484 -0
- package/runtime/Stage/init.luau +178 -0
- package/runtime/Sweep/init.luau +257 -0
- package/runtime/Trace/init.luau +210 -0
- package/runtime/Ward/init.luau +178 -0
- package/src/cli.ts +9 -3
- package/src/clpp/contract.ts +14 -2
- package/src/clpp/index.ts +3 -3
- package/src/clpp/paths.ts +2 -3
- package/src/clpp/postprocess.ts +69 -7
- package/src/clpp/runner.ts +188 -18
- package/src/compile.ts +42 -12
- package/src/flare/emit.ts +231 -0
- package/src/flare/index.ts +50 -0
- package/src/flare/parse.ts +147 -0
- package/src/flare/types.ts +61 -0
- package/src/intellisense.ts +5 -16
- package/src/libs.ts +147 -75
- package/src/lsp.ts +6 -31
- package/src/native/index.ts +509 -0
- package/src/transpile.ts +10 -1
- package/src/types.ts +1 -0
- package/src/utils/project.ts +210 -52
- package/src/utils/rojo-mapper.ts +12 -6
- package/templates/game/.vscode/extensions.json +2 -1
- package/templates/game/default.project.json +16 -11
- package/templates/game/include/clpp/datatypes.clh +611 -0
- package/templates/game/include/clpp/generated/enums.clh +4920 -0
- package/templates/game/include/clpp/generated/instances.clh +87111 -0
- package/templates/game/include/clpp/libs/arrayindexer.clh +12 -0
- package/templates/game/include/clpp/libs/axiom.clh +154 -0
- package/templates/game/include/clpp/libs/bloom.clh +58 -0
- package/templates/game/include/clpp/libs/coil.clh +37 -0
- package/templates/game/include/clpp/libs/crest.clh +22 -0
- package/templates/game/include/clpp/libs/echo.clh +52 -0
- package/templates/game/include/clpp/libs/ember.clh +17 -0
- package/templates/game/include/clpp/libs/flare.clh +65 -0
- package/templates/game/include/clpp/libs/gleam.clh +111 -0
- package/templates/game/include/clpp/libs/guide.clh +42 -0
- package/templates/game/include/clpp/libs/helm.clh +31 -0
- package/templates/game/include/clpp/libs/hive.clh +20 -0
- package/templates/game/include/clpp/libs/keep.clh +158 -0
- package/templates/game/include/clpp/libs/lens.clh +24 -0
- package/templates/game/include/clpp/libs/mint.clh +28 -0
- package/templates/game/include/clpp/libs/net.clh +31 -0
- package/templates/game/include/clpp/libs/occlude.clh +15 -0
- package/templates/game/include/clpp/libs/pin.clh +28 -0
- package/templates/game/include/clpp/libs/promise.clh +24 -0
- package/templates/game/include/clpp/libs/roster.clh +117 -0
- package/templates/game/include/clpp/libs/shift.clh +22 -0
- package/templates/game/include/clpp/libs/spark.clh +28 -0
- package/templates/game/include/clpp/libs/stage.clh +23 -0
- package/templates/game/include/clpp/libs/sweep.clh +23 -0
- package/templates/game/include/clpp/libs/trace.clh +18 -0
- package/templates/game/include/clpp/libs/ward.clh +18 -0
- package/templates/game/include/clpp/libs.clh +31 -0
- package/templates/game/include/clpp/roblox.clh +42 -0
- package/templates/game/src/ReplicatedFirst/Loading/.gitkeep +1 -0
- package/templates/game/src/ReplicatedStorage/Shared/Constants/Classes/.gitkeep +1 -0
- package/templates/game/src/ReplicatedStorage/Shared/Constants/Datas/TemplateData.clh +40 -0
- package/templates/game/src/ReplicatedStorage/Shared/Constants/Primitives/.gitkeep +1 -0
- package/templates/game/src/ReplicatedStorage/Shared/Modules/.gitkeep +1 -0
- package/templates/game/src/ReplicatedStorage/Shared/Net/.gitkeep +1 -0
- package/templates/game/src/ReplicatedStorage/Shared/Services/.gitkeep +1 -0
- package/templates/game/src/ReplicatedStorage/Shared/Types/.gitkeep +1 -0
- package/templates/game/src/ReplicatedStorage/Shared/Utils/.gitkeep +1 -0
- package/templates/game/src/ServerScriptService/Boot/DataBoot.server.clpp +13 -0
- package/templates/game/src/ServerScriptService/Components/.gitkeep +1 -0
- package/templates/game/src/ServerScriptService/Configuration/ServerConfig.clp +4 -0
- package/templates/game/src/ServerScriptService/Handlers/Guard.server.clpp +7 -0
- package/templates/game/src/ServerScriptService/Handlers/PlayerHandler.server.clpp +24 -0
- package/templates/game/src/ServerScriptService/Services/.gitkeep +1 -0
- package/templates/game/src/ServerStorage/Configuration/.gitkeep +1 -0
- package/templates/game/src/ServerStorage/Modules/.gitkeep +1 -0
- package/{examples/game/src/client/init.client.clpp → templates/game/src/StarterPlayer/StarterCharacterScripts/Character/CharacterReady.client.clpp} +1 -1
- package/templates/game/src/StarterPlayer/StarterCharacterScripts/Combat/.gitkeep +1 -0
- package/templates/game/src/StarterPlayer/StarterCharacterScripts/Movement/.gitkeep +1 -0
- package/templates/game/src/StarterPlayer/StarterPlayerScripts/Controllers/DataController.client.clpp +7 -0
- package/templates/game/src/StarterPlayer/StarterPlayerScripts/Input/.gitkeep +1 -0
- package/templates/game/src/StarterPlayer/StarterPlayerScripts/UI/.gitkeep +1 -0
- package/templates/game/wally.toml +4 -3
- package/docs/README.md +0 -27
- package/docs/architecture.md +0 -29
- package/docs/cli.md +0 -39
- package/docs/comparison.md +0 -19
- package/docs/config.md +0 -30
- package/docs/cpp-advanced.md +0 -78
- package/docs/cpp-const.md +0 -52
- package/docs/cpp-organization.md +0 -63
- package/docs/cpp-safety.md +0 -62
- package/docs/cpp-types.md +0 -68
- package/docs/examples/_category_.json +0 -5
- package/docs/examples/combat.md +0 -31
- package/docs/examples/data-boot.md +0 -98
- package/docs/examples/hud.md +0 -28
- package/docs/examples/index.md +0 -38
- package/docs/examples/leaderstats.md +0 -69
- package/docs/examples/shop.md +0 -122
- package/docs/examples/sword.md +0 -108
- package/docs/getting-started.md +0 -62
- package/docs/intellisense.md +0 -12
- package/docs/intro.md +0 -38
- package/docs/libraries/_category_.json +0 -5
- package/docs/libraries/dataservice.md +0 -107
- package/docs/libraries/index.md +0 -23
- package/docs/libraries/janitor.md +0 -65
- package/docs/libraries/more.md +0 -81
- package/docs/libraries/net.md +0 -35
- package/docs/libraries/promise.md +0 -27
- package/docs/libraries/ui.md +0 -76
- package/docs/migration.md +0 -38
- package/docs/oop/_category_.json +0 -5
- package/docs/oop/file-tags.md +0 -24
- package/docs/oop/index.md +0 -29
- package/docs/oop/modules.md +0 -88
- package/docs/oop/services.md +0 -76
- package/docs/print-cout.md +0 -91
- package/docs/roblox-api.md +0 -29
- package/docs/syntax.md +0 -80
- package/examples/game/src/client/hud.client.clpp +0 -54
- package/examples/game/src/server/combat.server.clpp +0 -85
- package/examples/game/src/server/leaderstats.server.clpp +0 -28
- package/examples/game/src/shared/PlayerData.clh +0 -20
- package/examples/game/src/shared/config.clp +0 -6
- package/examples/game/src/shared/features.clp +0 -88
- package/include/clpp/libs/chrono.clh +0 -26
- package/include/clpp/libs/cmdr.clh +0 -16
- package/include/clpp/libs/dataservice.clh +0 -138
- package/include/clpp/libs/display.clh +0 -12
- package/include/clpp/libs/ezvisual.clh +0 -16
- package/include/clpp/libs/formatnumber.clh +0 -14
- package/include/clpp/libs/fusion.clh +0 -41
- package/include/clpp/libs/iris.clh +0 -40
- package/include/clpp/libs/janitor.clh +0 -38
- package/include/clpp/libs/math.clh +0 -14
- package/include/clpp/libs/module3d.clh +0 -23
- package/include/clpp/libs/spring.clh +0 -17
- package/include/clpp/libs/statemachine.clh +0 -18
- package/include/clpp/libs/stickybillboard.clh +0 -13
- package/include/clpp/libs/topbarplus.clh +0 -28
- package/include/clpp/libs/twinkle.clh +0 -15
- package/include/clpp/libs/vfx.clh +0 -13
- package/runtime/Chrono/Client/ClientClock.luau +0 -202
- package/runtime/Chrono/Client/InterpolationBuffer.luau +0 -74
- package/runtime/Chrono/Client/ModelResolver.luau +0 -53
- package/runtime/Chrono/Client/Player.luau +0 -113
- package/runtime/Chrono/Client/Receiver.luau +0 -395
- package/runtime/Chrono/Client/Replicate.luau +0 -333
- package/runtime/Chrono/Client/Sender.luau +0 -205
- package/runtime/Chrono/LICENSE +0 -21
- package/runtime/Chrono/Server/EntityGrid.luau +0 -299
- package/runtime/Chrono/Server/Player.luau +0 -141
- package/runtime/Chrono/Server/Receiver.luau +0 -287
- package/runtime/Chrono/Server/Replicate.luau +0 -415
- package/runtime/Chrono/Server/Sender.luau +0 -306
- package/runtime/Chrono/Server/ServerClock.luau +0 -50
- package/runtime/Chrono/Shared/ApplyMounts.luau +0 -137
- package/runtime/Chrono/Shared/Bin.luau +0 -31
- package/runtime/Chrono/Shared/ClockUnwrap.luau +0 -70
- package/runtime/Chrono/Shared/Config.luau +0 -264
- package/runtime/Chrono/Shared/Entity.luau +0 -1016
- package/runtime/Chrono/Shared/Events.luau +0 -39
- package/runtime/Chrono/Shared/Holder.luau +0 -210
- package/runtime/Chrono/Shared/InterpolationMath.luau +0 -51
- package/runtime/Chrono/Shared/ModelHelper.luau +0 -122
- package/runtime/Chrono/Shared/Remotes/ClientClockRelay.model.json +0 -3
- package/runtime/Chrono/Shared/Remotes/ClientHeartbeat.model.json +0 -3
- package/runtime/Chrono/Shared/Remotes/ClientLoaded.model.json +0 -3
- package/runtime/Chrono/Shared/Remotes/Death.model.json +0 -3
- package/runtime/Chrono/Shared/Remotes/Heartbeat.model.json +0 -3
- package/runtime/Chrono/Shared/Remotes/Replicate.model.json +0 -3
- package/runtime/Chrono/Shared/Remotes/ReplicateFull.model.json +0 -3
- package/runtime/Chrono/Shared/Remotes/SafeReplicate.model.json +0 -3
- package/runtime/Chrono/Shared/ReplicationRules.luau +0 -122
- package/runtime/Chrono/Shared/Signal.luau +0 -219
- package/runtime/Chrono/Shared/Snapshots.luau +0 -218
- package/runtime/Chrono/Shared/Stats.luau +0 -204
- package/runtime/Chrono/Shared/Ticker.luau +0 -112
- package/runtime/Chrono/Shared/Types.luau +0 -247
- package/runtime/Chrono/Shared/Warn.luau +0 -33
- package/runtime/Chrono/Shared/_CUSTOM_MODEL_REP/init.model.json +0 -3
- package/runtime/Chrono/_impl/Client/ClientClock.luau +0 -202
- package/runtime/Chrono/_impl/Client/InterpolationBuffer.luau +0 -74
- package/runtime/Chrono/_impl/Client/ModelResolver.luau +0 -53
- package/runtime/Chrono/_impl/Client/Player.luau +0 -113
- package/runtime/Chrono/_impl/Client/Receiver.luau +0 -395
- package/runtime/Chrono/_impl/Client/Replicate.luau +0 -333
- package/runtime/Chrono/_impl/Client/Sender.luau +0 -205
- package/runtime/Chrono/_impl/LICENSE +0 -21
- package/runtime/Chrono/_impl/Server/EntityGrid.luau +0 -299
- package/runtime/Chrono/_impl/Server/Player.luau +0 -141
- package/runtime/Chrono/_impl/Server/Receiver.luau +0 -287
- package/runtime/Chrono/_impl/Server/Replicate.luau +0 -415
- package/runtime/Chrono/_impl/Server/Sender.luau +0 -306
- package/runtime/Chrono/_impl/Server/ServerClock.luau +0 -50
- package/runtime/Chrono/_impl/Shared/ApplyMounts.luau +0 -137
- package/runtime/Chrono/_impl/Shared/Bin.luau +0 -31
- package/runtime/Chrono/_impl/Shared/ClockUnwrap.luau +0 -70
- package/runtime/Chrono/_impl/Shared/Config.luau +0 -264
- package/runtime/Chrono/_impl/Shared/Entity.luau +0 -1016
- package/runtime/Chrono/_impl/Shared/Events.luau +0 -39
- package/runtime/Chrono/_impl/Shared/Holder.luau +0 -210
- package/runtime/Chrono/_impl/Shared/InterpolationMath.luau +0 -51
- package/runtime/Chrono/_impl/Shared/ModelHelper.luau +0 -122
- package/runtime/Chrono/_impl/Shared/Remotes/ClientClockRelay.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/Remotes/ClientHeartbeat.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/Remotes/ClientLoaded.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/Remotes/Death.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/Remotes/Heartbeat.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/Remotes/Replicate.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/Remotes/ReplicateFull.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/Remotes/SafeReplicate.model.json +0 -3
- package/runtime/Chrono/_impl/Shared/ReplicationRules.luau +0 -122
- package/runtime/Chrono/_impl/Shared/Signal.luau +0 -219
- package/runtime/Chrono/_impl/Shared/Snapshots.luau +0 -218
- package/runtime/Chrono/_impl/Shared/Stats.luau +0 -204
- package/runtime/Chrono/_impl/Shared/Ticker.luau +0 -112
- package/runtime/Chrono/_impl/Shared/Types.luau +0 -247
- package/runtime/Chrono/_impl/Shared/Warn.luau +0 -33
- package/runtime/Chrono/_impl/Shared/_CUSTOM_MODEL_REP/init.model.json +0 -3
- package/runtime/Chrono/_impl/init.luau +0 -96
- package/runtime/Chrono/init.luau +0 -14
- package/runtime/Cmdr/BuiltInCommands/Admin/announce.luau +0 -21
- package/runtime/Cmdr/BuiltInCommands/Admin/announceServer.luau +0 -17
- package/runtime/Cmdr/BuiltInCommands/Admin/ban.luau +0 -59
- package/runtime/Cmdr/BuiltInCommands/Admin/banServer.luau +0 -30
- package/runtime/Cmdr/BuiltInCommands/Admin/gotoPlace.luau +0 -35
- package/runtime/Cmdr/BuiltInCommands/Admin/gotoPlaceServer.luau +0 -17
- package/runtime/Cmdr/BuiltInCommands/Admin/kick.luau +0 -19
- package/runtime/Cmdr/BuiltInCommands/Admin/kickServer.luau +0 -27
- package/runtime/Cmdr/BuiltInCommands/Admin/kill.luau +0 -13
- package/runtime/Cmdr/BuiltInCommands/Admin/killServer.luau +0 -13
- package/runtime/Cmdr/BuiltInCommands/Admin/respawn.luau +0 -15
- package/runtime/Cmdr/BuiltInCommands/Admin/respawnServer.luau +0 -7
- package/runtime/Cmdr/BuiltInCommands/Admin/teleport.luau +0 -30
- package/runtime/Cmdr/BuiltInCommands/Admin/teleportServer.luau +0 -26
- package/runtime/Cmdr/BuiltInCommands/Admin/unban.luau +0 -26
- package/runtime/Cmdr/BuiltInCommands/Admin/unbanServer.luau +0 -10
- package/runtime/Cmdr/BuiltInCommands/Debug/blink.luau +0 -35
- package/runtime/Cmdr/BuiltInCommands/Debug/fetch.luau +0 -12
- package/runtime/Cmdr/BuiltInCommands/Debug/fetchServer.luau +0 -7
- package/runtime/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstance.luau +0 -20
- package/runtime/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstanceServer.luau +0 -28
- package/runtime/Cmdr/BuiltInCommands/Debug/position.luau +0 -30
- package/runtime/Cmdr/BuiltInCommands/Debug/thru.luau +0 -50
- package/runtime/Cmdr/BuiltInCommands/Debug/uptime.luau +0 -6
- package/runtime/Cmdr/BuiltInCommands/Debug/uptimeServer.luau +0 -12
- package/runtime/Cmdr/BuiltInCommands/Debug/version.luau +0 -12
- package/runtime/Cmdr/BuiltInCommands/Utility/alias.luau +0 -22
- package/runtime/Cmdr/BuiltInCommands/Utility/bind.luau +0 -104
- package/runtime/Cmdr/BuiltInCommands/Utility/clear.luau +0 -20
- package/runtime/Cmdr/BuiltInCommands/Utility/convertTimestamp.luau +0 -18
- package/runtime/Cmdr/BuiltInCommands/Utility/echo.luau +0 -17
- package/runtime/Cmdr/BuiltInCommands/Utility/edit.luau +0 -75
- package/runtime/Cmdr/BuiltInCommands/Utility/exit.luau +0 -11
- package/runtime/Cmdr/BuiltInCommands/Utility/history.luau +0 -27
- package/runtime/Cmdr/BuiltInCommands/Utility/hover.luau +0 -21
- package/runtime/Cmdr/BuiltInCommands/Utility/jsonArrayDecode.luau +0 -25
- package/runtime/Cmdr/BuiltInCommands/Utility/jsonArrayEncode.luau +0 -18
- package/runtime/Cmdr/BuiltInCommands/Utility/len.luau +0 -16
- package/runtime/Cmdr/BuiltInCommands/Utility/math.luau +0 -36
- package/runtime/Cmdr/BuiltInCommands/Utility/pick.luau +0 -21
- package/runtime/Cmdr/BuiltInCommands/Utility/rand.luau +0 -27
- package/runtime/Cmdr/BuiltInCommands/Utility/replace.luau +0 -32
- package/runtime/Cmdr/BuiltInCommands/Utility/resolve.luau +0 -32
- package/runtime/Cmdr/BuiltInCommands/Utility/run.luau +0 -20
- package/runtime/Cmdr/BuiltInCommands/Utility/runLines.luau +0 -34
- package/runtime/Cmdr/BuiltInCommands/Utility/runif.luau +0 -95
- package/runtime/Cmdr/BuiltInCommands/Utility/unbind.luau +0 -27
- package/runtime/Cmdr/BuiltInCommands/Utility/var.luau +0 -29
- package/runtime/Cmdr/BuiltInCommands/Utility/varServer.luau +0 -37
- package/runtime/Cmdr/BuiltInCommands/Utility/varSet.luau +0 -30
- package/runtime/Cmdr/BuiltInCommands/Utility/varSetServer.luau +0 -29
- package/runtime/Cmdr/BuiltInCommands/help.luau +0 -96
- package/runtime/Cmdr/BuiltInTypes/BrickColor.luau +0 -258
- package/runtime/Cmdr/BuiltInTypes/Color3.luau +0 -59
- package/runtime/Cmdr/BuiltInTypes/Command.luau +0 -23
- package/runtime/Cmdr/BuiltInTypes/Duration.luau +0 -111
- package/runtime/Cmdr/BuiltInTypes/JSON.luau +0 -13
- package/runtime/Cmdr/BuiltInTypes/MathOperator.luau +0 -43
- package/runtime/Cmdr/BuiltInTypes/Player.luau +0 -36
- package/runtime/Cmdr/BuiltInTypes/PlayerId.luau +0 -66
- package/runtime/Cmdr/BuiltInTypes/Primitives.luau +0 -145
- package/runtime/Cmdr/BuiltInTypes/StoredKey.luau +0 -33
- package/runtime/Cmdr/BuiltInTypes/Team.luau +0 -49
- package/runtime/Cmdr/BuiltInTypes/Type.luau +0 -23
- package/runtime/Cmdr/BuiltInTypes/URL.luau +0 -18
- package/runtime/Cmdr/BuiltInTypes/UserInput.luau +0 -32
- package/runtime/Cmdr/BuiltInTypes/Vector.luau +0 -58
- package/runtime/Cmdr/CmdrClient/CmdrInterface/AutoComplete.luau +0 -240
- package/runtime/Cmdr/CmdrClient/CmdrInterface/CreateGui.luau +0 -227
- package/runtime/Cmdr/CmdrClient/CmdrInterface/Window.luau +0 -713
- package/runtime/Cmdr/CmdrClient/CmdrInterface/init.luau +0 -18
- package/runtime/Cmdr/CmdrClient/DefaultEventHandlers.luau +0 -18
- package/runtime/Cmdr/CmdrClient/Shared/Argument.luau +0 -395
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/HasCharacter.luau +0 -39
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/IsDataStoreAvailable.luau +0 -36
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/MaxArrayLength.luau +0 -10
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/MaxStringLength.luau +0 -10
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/NonEmptyString.luau +0 -10
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/NotEquals.luau +0 -8
- package/runtime/Cmdr/CmdrClient/Shared/Command.luau +0 -415
- package/runtime/Cmdr/CmdrClient/Shared/Dispatcher.luau +0 -407
- package/runtime/Cmdr/CmdrClient/Shared/Registry.luau +0 -717
- package/runtime/Cmdr/CmdrClient/Shared/Util.luau +0 -879
- package/runtime/Cmdr/CmdrClient/init.luau +0 -377
- package/runtime/Cmdr/LICENSE +0 -21
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/announce.luau +0 -21
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/announceServer.luau +0 -17
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/ban.luau +0 -59
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/banServer.luau +0 -30
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/gotoPlace.luau +0 -35
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/gotoPlaceServer.luau +0 -17
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/kick.luau +0 -19
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/kickServer.luau +0 -27
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/kill.luau +0 -13
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/killServer.luau +0 -13
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/respawn.luau +0 -15
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/respawnServer.luau +0 -7
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/teleport.luau +0 -30
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/teleportServer.luau +0 -26
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/unban.luau +0 -26
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/unbanServer.luau +0 -10
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/blink.luau +0 -35
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/fetch.luau +0 -12
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/fetchServer.luau +0 -7
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/getPlayerPlaceInstance.luau +0 -20
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/getPlayerPlaceInstanceServer.luau +0 -28
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/position.luau +0 -30
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/thru.luau +0 -50
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/uptime.luau +0 -6
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/uptimeServer.luau +0 -12
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/version.luau +0 -12
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/alias.luau +0 -22
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/bind.luau +0 -104
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/clear.luau +0 -20
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/convertTimestamp.luau +0 -18
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/echo.luau +0 -17
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/edit.luau +0 -75
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/exit.luau +0 -11
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/history.luau +0 -27
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/hover.luau +0 -21
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/jsonArrayDecode.luau +0 -25
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/jsonArrayEncode.luau +0 -18
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/len.luau +0 -16
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/math.luau +0 -36
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/pick.luau +0 -21
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/rand.luau +0 -27
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/replace.luau +0 -32
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/resolve.luau +0 -32
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/run.luau +0 -20
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/runLines.luau +0 -34
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/runif.luau +0 -95
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/unbind.luau +0 -27
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/var.luau +0 -29
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/varServer.luau +0 -37
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/varSet.luau +0 -30
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/varSetServer.luau +0 -29
- package/runtime/Cmdr/_impl/BuiltInCommands/help.luau +0 -96
- package/runtime/Cmdr/_impl/BuiltInTypes/BrickColor.luau +0 -258
- package/runtime/Cmdr/_impl/BuiltInTypes/Color3.luau +0 -59
- package/runtime/Cmdr/_impl/BuiltInTypes/Command.luau +0 -23
- package/runtime/Cmdr/_impl/BuiltInTypes/Duration.luau +0 -111
- package/runtime/Cmdr/_impl/BuiltInTypes/JSON.luau +0 -13
- package/runtime/Cmdr/_impl/BuiltInTypes/MathOperator.luau +0 -43
- package/runtime/Cmdr/_impl/BuiltInTypes/Player.luau +0 -36
- package/runtime/Cmdr/_impl/BuiltInTypes/PlayerId.luau +0 -66
- package/runtime/Cmdr/_impl/BuiltInTypes/Primitives.luau +0 -145
- package/runtime/Cmdr/_impl/BuiltInTypes/StoredKey.luau +0 -33
- package/runtime/Cmdr/_impl/BuiltInTypes/Team.luau +0 -49
- package/runtime/Cmdr/_impl/BuiltInTypes/Type.luau +0 -23
- package/runtime/Cmdr/_impl/BuiltInTypes/URL.luau +0 -18
- package/runtime/Cmdr/_impl/BuiltInTypes/UserInput.luau +0 -32
- package/runtime/Cmdr/_impl/BuiltInTypes/Vector.luau +0 -58
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/AutoComplete.luau +0 -240
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/CreateGui.luau +0 -227
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/Window.luau +0 -713
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/init.luau +0 -18
- package/runtime/Cmdr/_impl/CmdrClient/DefaultEventHandlers.luau +0 -18
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Argument.luau +0 -395
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/HasCharacter.luau +0 -39
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/IsDataStoreAvailable.luau +0 -36
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/MaxArrayLength.luau +0 -10
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/MaxStringLength.luau +0 -10
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/NonEmptyString.luau +0 -10
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/NotEquals.luau +0 -8
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Command.luau +0 -415
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Dispatcher.luau +0 -407
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Registry.luau +0 -717
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Util.luau +0 -879
- package/runtime/Cmdr/_impl/CmdrClient/init.luau +0 -377
- package/runtime/Cmdr/_impl/LICENSE +0 -21
- package/runtime/Cmdr/_impl/init.luau +0 -178
- package/runtime/Cmdr/init.luau +0 -8
- package/runtime/DataService/Client.luau +0 -209
- package/runtime/DataService/Packages/quicknet/DataTypes.luau +0 -70
- package/runtime/DataService/Packages/quicknet/Enums.luau +0 -85
- package/runtime/DataService/Packages/quicknet/EnumsToNativeTypes.luau +0 -57
- package/runtime/DataService/Packages/quicknet/Parser.luau +0 -355
- package/runtime/DataService/Packages/quicknet/QuickNet.luau +0 -953
- package/runtime/DataService/Packages/quicknet/Serialize.luau +0 -2020
- package/runtime/DataService/Packages/quicknet/Types.luau +0 -72
- package/runtime/DataService/Packages/quicknet/init.luau +0 -1
- package/runtime/DataService/Packages/signal/init.luau +0 -433
- package/runtime/DataService/ProfileStore.luau +0 -2243
- package/runtime/DataService/Replicator.luau +0 -172
- package/runtime/DataService/Server.luau +0 -412
- package/runtime/Display/LICENSE +0 -201
- package/runtime/Display/_impl/LICENSE +0 -201
- package/runtime/Display/_impl/init.luau +0 -269
- package/runtime/Display/_impl/option.luau +0 -237
- package/runtime/Display/init.luau +0 -10
- package/runtime/Display/option.luau +0 -237
- package/runtime/EzVisualz/Dropshadow.luau +0 -148
- package/runtime/EzVisualz/Gradient.luau +0 -452
- package/runtime/EzVisualz/GradientTemplates/Bubblegum.luau +0 -16
- package/runtime/EzVisualz/GradientTemplates/Chrome.luau +0 -16
- package/runtime/EzVisualz/GradientTemplates/Death.luau +0 -15
- package/runtime/EzVisualz/GradientTemplates/Electric.luau +0 -14
- package/runtime/EzVisualz/GradientTemplates/Fire.luau +0 -13
- package/runtime/EzVisualz/GradientTemplates/Galaxy.luau +0 -11
- package/runtime/EzVisualz/GradientTemplates/Ghost.luau +0 -16
- package/runtime/EzVisualz/GradientTemplates/Gold.luau +0 -14
- package/runtime/EzVisualz/GradientTemplates/Green.luau +0 -14
- package/runtime/EzVisualz/GradientTemplates/Ice.luau +0 -14
- package/runtime/EzVisualz/GradientTemplates/Lava.luau +0 -15
- package/runtime/EzVisualz/GradientTemplates/Matrix.luau +0 -19
- package/runtime/EzVisualz/GradientTemplates/Neon.luau +0 -12
- package/runtime/EzVisualz/GradientTemplates/Oceanic.luau +0 -15
- package/runtime/EzVisualz/GradientTemplates/Rainbow.luau +0 -13
- package/runtime/EzVisualz/GradientTemplates/Silver.luau +0 -12
- package/runtime/EzVisualz/GradientTemplates/Sunset.luau +0 -11
- package/runtime/EzVisualz/GradientTemplates/Zebra.luau +0 -18
- package/runtime/EzVisualz/GradientTemplates/init.luau +0 -9
- package/runtime/EzVisualz/LICENSE.md +0 -21
- package/runtime/EzVisualz/Presets/Bubblegum.luau +0 -36
- package/runtime/EzVisualz/Presets/ChromeStroke.luau +0 -15
- package/runtime/EzVisualz/Presets/DeathStroke.luau +0 -15
- package/runtime/EzVisualz/Presets/ElectricStroke.luau +0 -54
- package/runtime/EzVisualz/Presets/FireStroke.luau +0 -29
- package/runtime/EzVisualz/Presets/GalaxyStroke.luau +0 -31
- package/runtime/EzVisualz/Presets/Ghost.luau +0 -10
- package/runtime/EzVisualz/Presets/GhostStroke.luau +0 -15
- package/runtime/EzVisualz/Presets/Gold.luau +0 -10
- package/runtime/EzVisualz/Presets/GoldStroke.luau +0 -15
- package/runtime/EzVisualz/Presets/GreenOutline.luau +0 -23
- package/runtime/EzVisualz/Presets/IceStroke.luau +0 -15
- package/runtime/EzVisualz/Presets/Lava.luau +0 -9
- package/runtime/EzVisualz/Presets/LavaStroke.luau +0 -13
- package/runtime/EzVisualz/Presets/Matrix.luau +0 -21
- package/runtime/EzVisualz/Presets/NeonStroke.luau +0 -30
- package/runtime/EzVisualz/Presets/OceanicStroke.luau +0 -15
- package/runtime/EzVisualz/Presets/Rainbow.luau +0 -9
- package/runtime/EzVisualz/Presets/RainbowOutline.luau +0 -23
- package/runtime/EzVisualz/Presets/RainbowStroke.luau +0 -13
- package/runtime/EzVisualz/Presets/Shine.luau +0 -48
- package/runtime/EzVisualz/Presets/ShineOutline.luau +0 -66
- package/runtime/EzVisualz/Presets/Silver.luau +0 -10
- package/runtime/EzVisualz/Presets/SilverStroke.luau +0 -15
- package/runtime/EzVisualz/Presets/SunsetStroke.luau +0 -31
- package/runtime/EzVisualz/Presets/WaveStroke.luau +0 -33
- package/runtime/EzVisualz/Presets/Zebra.luau +0 -21
- package/runtime/EzVisualz/Presets/init.luau +0 -9
- package/runtime/EzVisualz/Stroke.luau +0 -167
- package/runtime/EzVisualz/Util.luau +0 -7
- package/runtime/EzVisualz/_impl/Dropshadow.luau +0 -148
- package/runtime/EzVisualz/_impl/Gradient.luau +0 -452
- package/runtime/EzVisualz/_impl/GradientTemplates/Bubblegum.luau +0 -16
- package/runtime/EzVisualz/_impl/GradientTemplates/Chrome.luau +0 -16
- package/runtime/EzVisualz/_impl/GradientTemplates/Death.luau +0 -15
- package/runtime/EzVisualz/_impl/GradientTemplates/Electric.luau +0 -14
- package/runtime/EzVisualz/_impl/GradientTemplates/Fire.luau +0 -13
- package/runtime/EzVisualz/_impl/GradientTemplates/Galaxy.luau +0 -11
- package/runtime/EzVisualz/_impl/GradientTemplates/Ghost.luau +0 -16
- package/runtime/EzVisualz/_impl/GradientTemplates/Gold.luau +0 -14
- package/runtime/EzVisualz/_impl/GradientTemplates/Green.luau +0 -14
- package/runtime/EzVisualz/_impl/GradientTemplates/Ice.luau +0 -14
- package/runtime/EzVisualz/_impl/GradientTemplates/Lava.luau +0 -15
- package/runtime/EzVisualz/_impl/GradientTemplates/Matrix.luau +0 -19
- package/runtime/EzVisualz/_impl/GradientTemplates/Neon.luau +0 -12
- package/runtime/EzVisualz/_impl/GradientTemplates/Oceanic.luau +0 -15
- package/runtime/EzVisualz/_impl/GradientTemplates/Rainbow.luau +0 -13
- package/runtime/EzVisualz/_impl/GradientTemplates/Silver.luau +0 -12
- package/runtime/EzVisualz/_impl/GradientTemplates/Sunset.luau +0 -11
- package/runtime/EzVisualz/_impl/GradientTemplates/Zebra.luau +0 -18
- package/runtime/EzVisualz/_impl/GradientTemplates/init.luau +0 -9
- package/runtime/EzVisualz/_impl/LICENSE.md +0 -21
- package/runtime/EzVisualz/_impl/Presets/Bubblegum.luau +0 -36
- package/runtime/EzVisualz/_impl/Presets/ChromeStroke.luau +0 -15
- package/runtime/EzVisualz/_impl/Presets/DeathStroke.luau +0 -15
- package/runtime/EzVisualz/_impl/Presets/ElectricStroke.luau +0 -54
- package/runtime/EzVisualz/_impl/Presets/FireStroke.luau +0 -29
- package/runtime/EzVisualz/_impl/Presets/GalaxyStroke.luau +0 -31
- package/runtime/EzVisualz/_impl/Presets/Ghost.luau +0 -10
- package/runtime/EzVisualz/_impl/Presets/GhostStroke.luau +0 -15
- package/runtime/EzVisualz/_impl/Presets/Gold.luau +0 -10
- package/runtime/EzVisualz/_impl/Presets/GoldStroke.luau +0 -15
- package/runtime/EzVisualz/_impl/Presets/GreenOutline.luau +0 -23
- package/runtime/EzVisualz/_impl/Presets/IceStroke.luau +0 -15
- package/runtime/EzVisualz/_impl/Presets/Lava.luau +0 -9
- package/runtime/EzVisualz/_impl/Presets/LavaStroke.luau +0 -13
- package/runtime/EzVisualz/_impl/Presets/Matrix.luau +0 -21
- package/runtime/EzVisualz/_impl/Presets/NeonStroke.luau +0 -30
- package/runtime/EzVisualz/_impl/Presets/OceanicStroke.luau +0 -15
- package/runtime/EzVisualz/_impl/Presets/Rainbow.luau +0 -9
- package/runtime/EzVisualz/_impl/Presets/RainbowOutline.luau +0 -23
- package/runtime/EzVisualz/_impl/Presets/RainbowStroke.luau +0 -13
- package/runtime/EzVisualz/_impl/Presets/Shine.luau +0 -48
- package/runtime/EzVisualz/_impl/Presets/ShineOutline.luau +0 -66
- package/runtime/EzVisualz/_impl/Presets/Silver.luau +0 -10
- package/runtime/EzVisualz/_impl/Presets/SilverStroke.luau +0 -15
- package/runtime/EzVisualz/_impl/Presets/SunsetStroke.luau +0 -31
- package/runtime/EzVisualz/_impl/Presets/WaveStroke.luau +0 -33
- package/runtime/EzVisualz/_impl/Presets/Zebra.luau +0 -21
- package/runtime/EzVisualz/_impl/Presets/init.luau +0 -9
- package/runtime/EzVisualz/_impl/Stroke.luau +0 -167
- package/runtime/EzVisualz/_impl/Util.luau +0 -7
- package/runtime/EzVisualz/_impl/init.luau +0 -319
- package/runtime/EzVisualz/_impl/wally.lock +0 -8
- package/runtime/EzVisualz/_impl/wally.toml +0 -8
- package/runtime/EzVisualz/init.luau +0 -9
- package/runtime/EzVisualz/wally.lock +0 -8
- package/runtime/EzVisualz/wally.toml +0 -8
- package/runtime/FormatNumber/LICENSE.md +0 -25
- package/runtime/FormatNumber/Main/DecimalFormatSymbols.lua +0 -43
- package/runtime/FormatNumber/Main/IntegerWidth.lua +0 -41
- package/runtime/FormatNumber/Main/Notation.lua +0 -116
- package/runtime/FormatNumber/Main/Precision.lua +0 -179
- package/runtime/FormatNumber/Main/init.lua +0 -199
- package/runtime/FormatNumber/Simple/init.lua +0 -76
- package/runtime/FormatNumber/Version.lua +0 -82
- package/runtime/FormatNumber/_impl/LICENSE.md +0 -25
- package/runtime/FormatNumber/_impl/Main/DecimalFormatSymbols.lua +0 -43
- package/runtime/FormatNumber/_impl/Main/IntegerWidth.lua +0 -41
- package/runtime/FormatNumber/_impl/Main/Notation.lua +0 -116
- package/runtime/FormatNumber/_impl/Main/Precision.lua +0 -179
- package/runtime/FormatNumber/_impl/Main/init.lua +0 -199
- package/runtime/FormatNumber/_impl/Simple/init.lua +0 -76
- package/runtime/FormatNumber/_impl/Version.lua +0 -82
- package/runtime/FormatNumber/_impl/_internal/class.lua +0 -204
- package/runtime/FormatNumber/_impl/_internal/decimal_conversion.lua +0 -30
- package/runtime/FormatNumber/_impl/_internal/enums.lua +0 -55
- package/runtime/FormatNumber/_impl/_internal/format.lua +0 -342
- package/runtime/FormatNumber/_impl/_internal/formatter_settings.lua +0 -160
- package/runtime/FormatNumber/_impl/_internal/init.lua +0 -8
- package/runtime/FormatNumber/_impl/_internal/skeleton.lua +0 -541
- package/runtime/FormatNumber/_impl/init.lua +0 -20
- package/runtime/FormatNumber/_internal/class.lua +0 -204
- package/runtime/FormatNumber/_internal/decimal_conversion.lua +0 -30
- package/runtime/FormatNumber/_internal/enums.lua +0 -55
- package/runtime/FormatNumber/_internal/format.lua +0 -342
- package/runtime/FormatNumber/_internal/formatter_settings.lua +0 -160
- package/runtime/FormatNumber/_internal/init.lua +0 -8
- package/runtime/FormatNumber/_internal/skeleton.lua +0 -541
- package/runtime/FormatNumber/init.lua +0 -20
- package/runtime/FormatNumber/init.luau +0 -20
- package/runtime/Fusion/Animation/ExternalTime.luau +0 -84
- package/runtime/Fusion/Animation/Spring.luau +0 -313
- package/runtime/Fusion/Animation/Stopwatch.luau +0 -128
- package/runtime/Fusion/Animation/Tween.luau +0 -178
- package/runtime/Fusion/Animation/getTweenDuration.luau +0 -27
- package/runtime/Fusion/Animation/getTweenRatio.luau +0 -47
- package/runtime/Fusion/Animation/lerpType.luau +0 -164
- package/runtime/Fusion/Animation/packType.luau +0 -100
- package/runtime/Fusion/Animation/springCoefficients.luau +0 -80
- package/runtime/Fusion/Animation/unpackType.luau +0 -103
- package/runtime/Fusion/Colour/Oklab.luau +0 -70
- package/runtime/Fusion/Colour/sRGB.luau +0 -47
- package/runtime/Fusion/External.luau +0 -156
- package/runtime/Fusion/ExternalDebug.luau +0 -70
- package/runtime/Fusion/Graph/Observer.luau +0 -111
- package/runtime/Fusion/Graph/castToGraph.luau +0 -29
- package/runtime/Fusion/Graph/change.luau +0 -81
- package/runtime/Fusion/Graph/depend.luau +0 -33
- package/runtime/Fusion/Graph/evaluate.luau +0 -56
- package/runtime/Fusion/Instances/Attribute.luau +0 -58
- package/runtime/Fusion/Instances/AttributeChange.luau +0 -47
- package/runtime/Fusion/Instances/AttributeOut.luau +0 -63
- package/runtime/Fusion/Instances/Child.luau +0 -21
- package/runtime/Fusion/Instances/Children.luau +0 -148
- package/runtime/Fusion/Instances/Hydrate.luau +0 -29
- package/runtime/Fusion/Instances/New.luau +0 -48
- package/runtime/Fusion/Instances/OnChange.luau +0 -50
- package/runtime/Fusion/Instances/OnEvent.luau +0 -54
- package/runtime/Fusion/Instances/Out.luau +0 -69
- package/runtime/Fusion/Instances/Tag.luau +0 -61
- package/runtime/Fusion/Instances/applyInstanceProps.luau +0 -149
- package/runtime/Fusion/Instances/defaultProps.luau +0 -194
- package/runtime/Fusion/LICENSE +0 -21
- package/runtime/Fusion/Logging/formatError.luau +0 -49
- package/runtime/Fusion/Logging/messages.luau +0 -46
- package/runtime/Fusion/Logging/parseError.luau +0 -25
- package/runtime/Fusion/Memory/checkLifetime.luau +0 -134
- package/runtime/Fusion/Memory/deriveScope.luau +0 -24
- package/runtime/Fusion/Memory/deriveScopeImpl.luau +0 -40
- package/runtime/Fusion/Memory/doCleanup.luau +0 -91
- package/runtime/Fusion/Memory/innerScope.luau +0 -34
- package/runtime/Fusion/Memory/insert.luau +0 -22
- package/runtime/Fusion/Memory/needsDestruction.luau +0 -17
- package/runtime/Fusion/Memory/scoped.luau +0 -24
- package/runtime/Fusion/RobloxExternal.luau +0 -98
- package/runtime/Fusion/State/Computed.luau +0 -122
- package/runtime/Fusion/State/For/Disassembly.luau +0 -207
- package/runtime/Fusion/State/For/ForTypes.luau +0 -30
- package/runtime/Fusion/State/For/init.luau +0 -101
- package/runtime/Fusion/State/ForKeys.luau +0 -88
- package/runtime/Fusion/State/ForPairs.luau +0 -91
- package/runtime/Fusion/State/ForValues.luau +0 -88
- package/runtime/Fusion/State/Value.luau +0 -76
- package/runtime/Fusion/State/castToState.luau +0 -26
- package/runtime/Fusion/State/peek.luau +0 -31
- package/runtime/Fusion/State/updateAll.luau +0 -1
- package/runtime/Fusion/Types.luau +0 -318
- package/runtime/Fusion/Utility/Contextual.luau +0 -91
- package/runtime/Fusion/Utility/Safe.luau +0 -23
- package/runtime/Fusion/Utility/isSimilar.luau +0 -29
- package/runtime/Fusion/Utility/merge.luau +0 -35
- package/runtime/Fusion/Utility/nameOf.luau +0 -35
- package/runtime/Fusion/Utility/never.luau +0 -14
- package/runtime/Fusion/Utility/nicknames.luau +0 -11
- package/runtime/Fusion/Utility/xtypeof.luau +0 -27
- package/runtime/Fusion/_impl/Animation/ExternalTime.luau +0 -84
- package/runtime/Fusion/_impl/Animation/Spring.luau +0 -313
- package/runtime/Fusion/_impl/Animation/Stopwatch.luau +0 -128
- package/runtime/Fusion/_impl/Animation/Tween.luau +0 -178
- package/runtime/Fusion/_impl/Animation/getTweenDuration.luau +0 -27
- package/runtime/Fusion/_impl/Animation/getTweenRatio.luau +0 -47
- package/runtime/Fusion/_impl/Animation/lerpType.luau +0 -164
- package/runtime/Fusion/_impl/Animation/packType.luau +0 -100
- package/runtime/Fusion/_impl/Animation/springCoefficients.luau +0 -80
- package/runtime/Fusion/_impl/Animation/unpackType.luau +0 -103
- package/runtime/Fusion/_impl/Colour/Oklab.luau +0 -70
- package/runtime/Fusion/_impl/Colour/sRGB.luau +0 -47
- package/runtime/Fusion/_impl/External.luau +0 -156
- package/runtime/Fusion/_impl/ExternalDebug.luau +0 -70
- package/runtime/Fusion/_impl/Graph/Observer.luau +0 -111
- package/runtime/Fusion/_impl/Graph/castToGraph.luau +0 -29
- package/runtime/Fusion/_impl/Graph/change.luau +0 -81
- package/runtime/Fusion/_impl/Graph/depend.luau +0 -33
- package/runtime/Fusion/_impl/Graph/evaluate.luau +0 -56
- package/runtime/Fusion/_impl/Instances/Attribute.luau +0 -58
- package/runtime/Fusion/_impl/Instances/AttributeChange.luau +0 -47
- package/runtime/Fusion/_impl/Instances/AttributeOut.luau +0 -63
- package/runtime/Fusion/_impl/Instances/Child.luau +0 -21
- package/runtime/Fusion/_impl/Instances/Children.luau +0 -148
- package/runtime/Fusion/_impl/Instances/Hydrate.luau +0 -29
- package/runtime/Fusion/_impl/Instances/New.luau +0 -48
- package/runtime/Fusion/_impl/Instances/OnChange.luau +0 -50
- package/runtime/Fusion/_impl/Instances/OnEvent.luau +0 -54
- package/runtime/Fusion/_impl/Instances/Out.luau +0 -69
- package/runtime/Fusion/_impl/Instances/Tag.luau +0 -61
- package/runtime/Fusion/_impl/Instances/applyInstanceProps.luau +0 -149
- package/runtime/Fusion/_impl/Instances/defaultProps.luau +0 -194
- package/runtime/Fusion/_impl/LICENSE +0 -21
- package/runtime/Fusion/_impl/Logging/formatError.luau +0 -49
- package/runtime/Fusion/_impl/Logging/messages.luau +0 -46
- package/runtime/Fusion/_impl/Logging/parseError.luau +0 -25
- package/runtime/Fusion/_impl/Memory/checkLifetime.luau +0 -134
- package/runtime/Fusion/_impl/Memory/deriveScope.luau +0 -24
- package/runtime/Fusion/_impl/Memory/deriveScopeImpl.luau +0 -40
- package/runtime/Fusion/_impl/Memory/doCleanup.luau +0 -91
- package/runtime/Fusion/_impl/Memory/innerScope.luau +0 -34
- package/runtime/Fusion/_impl/Memory/insert.luau +0 -22
- package/runtime/Fusion/_impl/Memory/needsDestruction.luau +0 -17
- package/runtime/Fusion/_impl/Memory/scoped.luau +0 -24
- package/runtime/Fusion/_impl/RobloxExternal.luau +0 -98
- package/runtime/Fusion/_impl/State/Computed.luau +0 -122
- package/runtime/Fusion/_impl/State/For/Disassembly.luau +0 -207
- package/runtime/Fusion/_impl/State/For/ForTypes.luau +0 -30
- package/runtime/Fusion/_impl/State/For/init.luau +0 -101
- package/runtime/Fusion/_impl/State/ForKeys.luau +0 -88
- package/runtime/Fusion/_impl/State/ForPairs.luau +0 -91
- package/runtime/Fusion/_impl/State/ForValues.luau +0 -88
- package/runtime/Fusion/_impl/State/Value.luau +0 -76
- package/runtime/Fusion/_impl/State/castToState.luau +0 -26
- package/runtime/Fusion/_impl/State/peek.luau +0 -31
- package/runtime/Fusion/_impl/State/updateAll.luau +0 -1
- package/runtime/Fusion/_impl/Types.luau +0 -318
- package/runtime/Fusion/_impl/Utility/Contextual.luau +0 -91
- package/runtime/Fusion/_impl/Utility/Safe.luau +0 -23
- package/runtime/Fusion/_impl/Utility/isSimilar.luau +0 -29
- package/runtime/Fusion/_impl/Utility/merge.luau +0 -35
- package/runtime/Fusion/_impl/Utility/nameOf.luau +0 -35
- package/runtime/Fusion/_impl/Utility/never.luau +0 -14
- package/runtime/Fusion/_impl/Utility/nicknames.luau +0 -11
- package/runtime/Fusion/_impl/Utility/xtypeof.luau +0 -27
- package/runtime/Fusion/_impl/init.luau +0 -83
- package/runtime/Fusion/init.luau +0 -27
- package/runtime/Iris/API.lua +0 -2085
- package/runtime/Iris/Internal.lua +0 -895
- package/runtime/Iris/LICENSE.txt +0 -21
- package/runtime/Iris/PubTypes.lua +0 -43
- package/runtime/Iris/Types.lua +0 -660
- package/runtime/Iris/WidgetTypes.lua +0 -521
- package/runtime/Iris/_impl/API.lua +0 -2085
- package/runtime/Iris/_impl/Internal.lua +0 -895
- package/runtime/Iris/_impl/LICENSE.txt +0 -21
- package/runtime/Iris/_impl/PubTypes.lua +0 -43
- package/runtime/Iris/_impl/Types.lua +0 -660
- package/runtime/Iris/_impl/WidgetTypes.lua +0 -521
- package/runtime/Iris/_impl/config.lua +0 -305
- package/runtime/Iris/_impl/init.lua +0 -696
- package/runtime/Iris/_impl/widgets/Button.lua +0 -90
- package/runtime/Iris/_impl/widgets/Checkbox.lua +0 -115
- package/runtime/Iris/_impl/widgets/Combo.lua +0 -492
- package/runtime/Iris/_impl/widgets/Format.lua +0 -140
- package/runtime/Iris/_impl/widgets/Image.lua +0 -155
- package/runtime/Iris/_impl/widgets/Input.lua +0 -1232
- package/runtime/Iris/_impl/widgets/Menu.lua +0 -599
- package/runtime/Iris/_impl/widgets/Plot.lua +0 -639
- package/runtime/Iris/_impl/widgets/RadioButton.lua +0 -126
- package/runtime/Iris/_impl/widgets/Root.lua +0 -143
- package/runtime/Iris/_impl/widgets/Tab.lua +0 -333
- package/runtime/Iris/_impl/widgets/Table.lua +0 -635
- package/runtime/Iris/_impl/widgets/Text.lua +0 -132
- package/runtime/Iris/_impl/widgets/Tree.lua +0 -287
- package/runtime/Iris/_impl/widgets/Window.lua +0 -1075
- package/runtime/Iris/_impl/widgets/init.lua +0 -447
- package/runtime/Iris/config.lua +0 -305
- package/runtime/Iris/init.lua +0 -696
- package/runtime/Iris/init.luau +0 -12
- package/runtime/Iris/widgets/Button.lua +0 -90
- package/runtime/Iris/widgets/Checkbox.lua +0 -115
- package/runtime/Iris/widgets/Combo.lua +0 -492
- package/runtime/Iris/widgets/Format.lua +0 -140
- package/runtime/Iris/widgets/Image.lua +0 -155
- package/runtime/Iris/widgets/Input.lua +0 -1232
- package/runtime/Iris/widgets/Menu.lua +0 -599
- package/runtime/Iris/widgets/Plot.lua +0 -639
- package/runtime/Iris/widgets/RadioButton.lua +0 -126
- package/runtime/Iris/widgets/Root.lua +0 -143
- package/runtime/Iris/widgets/Tab.lua +0 -333
- package/runtime/Iris/widgets/Table.lua +0 -635
- package/runtime/Iris/widgets/Text.lua +0 -132
- package/runtime/Iris/widgets/Tree.lua +0 -287
- package/runtime/Iris/widgets/Window.lua +0 -1075
- package/runtime/Iris/widgets/init.lua +0 -447
- package/runtime/Janitor/FastDefer.luau +0 -33
- package/runtime/Janitor/LICENSE +0 -21
- package/runtime/Janitor/_impl/FastDefer.luau +0 -33
- package/runtime/Janitor/_impl/LICENSE +0 -21
- package/runtime/Janitor/_impl/init.luau +0 -999
- package/runtime/Janitor/init.luau +0 -15
- package/runtime/MathUtils/init.luau +0 -100
- package/runtime/Module3D/LICENSE +0 -21
- package/runtime/Module3D/_impl/LICENSE +0 -21
- package/runtime/Module3D/_impl/init.luau +0 -269
- package/runtime/Module3D/init.luau +0 -14
- package/runtime/Spring/LICENSE +0 -201
- package/runtime/Spring/_impl/LICENSE +0 -201
- package/runtime/Spring/_impl/init.luau +0 -111
- package/runtime/Spring/init.luau +0 -24
- package/runtime/StateMachine/Classes/State.lua +0 -375
- package/runtime/StateMachine/Classes/Transition.lua +0 -336
- package/runtime/StateMachine/Functions/deepCopy.lua +0 -19
- package/runtime/StateMachine/Functions/mergeTables.lua +0 -22
- package/runtime/StateMachine/LICENSE +0 -19
- package/runtime/StateMachine/Vendor/Signal.lua +0 -386
- package/runtime/StateMachine/Vendor/Trove.lua +0 -188
- package/runtime/StateMachine/_impl/Classes/State.lua +0 -375
- package/runtime/StateMachine/_impl/Classes/Transition.lua +0 -336
- package/runtime/StateMachine/_impl/Functions/deepCopy.lua +0 -19
- package/runtime/StateMachine/_impl/Functions/mergeTables.lua +0 -22
- package/runtime/StateMachine/_impl/LICENSE +0 -19
- package/runtime/StateMachine/_impl/Vendor/Signal.lua +0 -386
- package/runtime/StateMachine/_impl/Vendor/Trove.lua +0 -188
- package/runtime/StateMachine/_impl/init.lua +0 -595
- package/runtime/StateMachine/init.lua +0 -595
- package/runtime/StateMachine/init.luau +0 -10
- package/runtime/StickyBillboard/init.luau +0 -167
- package/runtime/TopbarPlus/Attribute.lua +0 -35
- package/runtime/TopbarPlus/Elements/Caption.lua +0 -316
- package/runtime/TopbarPlus/Elements/Container.lua +0 -215
- package/runtime/TopbarPlus/Elements/Dropdown.lua +0 -315
- package/runtime/TopbarPlus/Elements/Indicator.lua +0 -91
- package/runtime/TopbarPlus/Elements/Menu.lua +0 -180
- package/runtime/TopbarPlus/Elements/Notice.lua +0 -113
- package/runtime/TopbarPlus/Elements/Selection.lua +0 -49
- package/runtime/TopbarPlus/Elements/Widget.lua +0 -437
- package/runtime/TopbarPlus/Features/Gamepad.lua +0 -201
- package/runtime/TopbarPlus/Features/Overflow.lua +0 -360
- package/runtime/TopbarPlus/Features/Themes/Classic.lua +0 -27
- package/runtime/TopbarPlus/Features/Themes/Default.lua +0 -75
- package/runtime/TopbarPlus/Features/Themes/init.lua +0 -353
- package/runtime/TopbarPlus/LICENSE +0 -381
- package/runtime/TopbarPlus/Packages/GoodSignal.lua +0 -182
- package/runtime/TopbarPlus/Packages/Janitor.lua +0 -322
- package/runtime/TopbarPlus/Reference.lua +0 -30
- package/runtime/TopbarPlus/Types.lua +0 -477
- package/runtime/TopbarPlus/Utility.lua +0 -462
- package/runtime/TopbarPlus/VERSION.lua +0 -51
- package/runtime/TopbarPlus/_impl/Attribute.lua +0 -35
- package/runtime/TopbarPlus/_impl/Elements/Caption.lua +0 -316
- package/runtime/TopbarPlus/_impl/Elements/Container.lua +0 -215
- package/runtime/TopbarPlus/_impl/Elements/Dropdown.lua +0 -315
- package/runtime/TopbarPlus/_impl/Elements/Indicator.lua +0 -91
- package/runtime/TopbarPlus/_impl/Elements/Menu.lua +0 -180
- package/runtime/TopbarPlus/_impl/Elements/Notice.lua +0 -113
- package/runtime/TopbarPlus/_impl/Elements/Selection.lua +0 -49
- package/runtime/TopbarPlus/_impl/Elements/Widget.lua +0 -437
- package/runtime/TopbarPlus/_impl/Features/Gamepad.lua +0 -201
- package/runtime/TopbarPlus/_impl/Features/Overflow.lua +0 -360
- package/runtime/TopbarPlus/_impl/Features/Themes/Classic.lua +0 -27
- package/runtime/TopbarPlus/_impl/Features/Themes/Default.lua +0 -75
- package/runtime/TopbarPlus/_impl/Features/Themes/init.lua +0 -353
- package/runtime/TopbarPlus/_impl/LICENSE +0 -381
- package/runtime/TopbarPlus/_impl/Packages/GoodSignal.lua +0 -182
- package/runtime/TopbarPlus/_impl/Packages/Janitor.lua +0 -322
- package/runtime/TopbarPlus/_impl/Reference.lua +0 -30
- package/runtime/TopbarPlus/_impl/Types.lua +0 -477
- package/runtime/TopbarPlus/_impl/Utility.lua +0 -462
- package/runtime/TopbarPlus/_impl/VERSION.lua +0 -51
- package/runtime/TopbarPlus/_impl/init.lua +0 -1249
- package/runtime/TopbarPlus/init.lua +0 -1249
- package/runtime/TopbarPlus/init.luau +0 -8
- package/runtime/Twinkle/init.luau +0 -157
- package/runtime/VfxUtil/init.luau +0 -164
- package/templates/game/src/server/leaderstats.server.clpp +0 -29
- package/templates/game/src/shared/config.clp +0 -6
- /package/runtime/{DataService → Keep}/Enum.luau +0 -0
- /package/runtime/{DataService → Keep}/Enums.luau +0 -0
- /package/runtime/{DataService → Keep}/Path.luau +0 -0
|
@@ -0,0 +1,716 @@
|
|
|
1
|
+
--!native
|
|
2
|
+
--!optimize 2
|
|
3
|
+
--!strict
|
|
4
|
+
--[[
|
|
5
|
+
Flare — Cluaupp networker.
|
|
6
|
+
Zap-style generated write/read, QuickNet-class buffers, ByteNet packets + queries.
|
|
7
|
+
|
|
8
|
+
Games do not call this module to declare remotes. Write a .flare schema;
|
|
9
|
+
cluaupp build generates Net.luau which opens a session here.
|
|
10
|
+
]]
|
|
11
|
+
|
|
12
|
+
local RunService = game:GetService("RunService")
|
|
13
|
+
local Players = game:GetService("Players")
|
|
14
|
+
local Ward = require(script.Parent.Ward)
|
|
15
|
+
|
|
16
|
+
type Cursor = {
|
|
17
|
+
buf: buffer,
|
|
18
|
+
offset: number,
|
|
19
|
+
instances: { Instance },
|
|
20
|
+
index: number,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type PacketSpec = {
|
|
24
|
+
id: number,
|
|
25
|
+
from: "client" | "server",
|
|
26
|
+
reliable: boolean,
|
|
27
|
+
write: (...any) -> Cursor,
|
|
28
|
+
read: (Cursor) -> (...any),
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
type QuerySpec = {
|
|
32
|
+
id: number,
|
|
33
|
+
writeReq: (...any) -> Cursor,
|
|
34
|
+
readReq: (Cursor) -> (...any),
|
|
35
|
+
writeRes: (Cursor, any) -> Cursor,
|
|
36
|
+
readRes: (Cursor) -> any,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type Queued = {
|
|
40
|
+
id: number,
|
|
41
|
+
cursor: Cursor,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
local writeu8 = buffer.writeu8
|
|
45
|
+
local writeu16 = buffer.writeu16
|
|
46
|
+
local writeu32 = buffer.writeu32
|
|
47
|
+
local writei8 = buffer.writei8
|
|
48
|
+
local writei16 = buffer.writei16
|
|
49
|
+
local writei32 = buffer.writei32
|
|
50
|
+
local writef32 = buffer.writef32
|
|
51
|
+
local writef64 = buffer.writef64
|
|
52
|
+
local writestring = buffer.writestring
|
|
53
|
+
local readu8 = buffer.readu8
|
|
54
|
+
local readu16 = buffer.readu16
|
|
55
|
+
local readu32 = buffer.readu32
|
|
56
|
+
local readi8 = buffer.readi8
|
|
57
|
+
local readi16 = buffer.readi16
|
|
58
|
+
local readi32 = buffer.readi32
|
|
59
|
+
local readf32 = buffer.readf32
|
|
60
|
+
local readf64 = buffer.readf64
|
|
61
|
+
local readstring = buffer.readstring
|
|
62
|
+
local bufferCopy = buffer.copy
|
|
63
|
+
local bufferLen = buffer.len
|
|
64
|
+
local bufferCreate = buffer.create
|
|
65
|
+
|
|
66
|
+
local function ensure(cursor: Cursor, extra: number)
|
|
67
|
+
local need = cursor.offset + extra
|
|
68
|
+
local size = bufferLen(cursor.buf)
|
|
69
|
+
if need <= size then
|
|
70
|
+
return
|
|
71
|
+
end
|
|
72
|
+
local grown = bufferCreate(math.max(size * 2, need))
|
|
73
|
+
bufferCopy(grown, 0, cursor.buf, 0, cursor.offset)
|
|
74
|
+
cursor.buf = grown
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
local function cursor(size: number?): Cursor
|
|
78
|
+
return {
|
|
79
|
+
buf = bufferCreate(size or 64),
|
|
80
|
+
offset = 0,
|
|
81
|
+
instances = {},
|
|
82
|
+
index = 1,
|
|
83
|
+
}
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
local function fromBuffer(buf: buffer, instances: { Instance }?): Cursor
|
|
87
|
+
return {
|
|
88
|
+
buf = buf,
|
|
89
|
+
offset = 0,
|
|
90
|
+
instances = instances or {},
|
|
91
|
+
index = 1,
|
|
92
|
+
}
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
local function instanceCount(c: Cursor): number
|
|
96
|
+
return c.index - 1
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
local function sliceCursor(c: Cursor): buffer
|
|
100
|
+
local n = c.offset
|
|
101
|
+
local buf = bufferCreate(n)
|
|
102
|
+
if n > 0 then
|
|
103
|
+
bufferCopy(buf, 0, c.buf, 0, n)
|
|
104
|
+
end
|
|
105
|
+
return buf
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
local Flare = {}
|
|
109
|
+
|
|
110
|
+
function Flare.cursor(size: number?): Cursor
|
|
111
|
+
return cursor(size)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
function Flare.writeu8(c: Cursor, value: number)
|
|
115
|
+
ensure(c, 1)
|
|
116
|
+
writeu8(c.buf, c.offset, value)
|
|
117
|
+
c.offset += 1
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
function Flare.writeu16(c: Cursor, value: number)
|
|
121
|
+
ensure(c, 2)
|
|
122
|
+
writeu16(c.buf, c.offset, value)
|
|
123
|
+
c.offset += 2
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
function Flare.writeu32(c: Cursor, value: number)
|
|
127
|
+
ensure(c, 4)
|
|
128
|
+
writeu32(c.buf, c.offset, value)
|
|
129
|
+
c.offset += 4
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
function Flare.writei8(c: Cursor, value: number)
|
|
133
|
+
ensure(c, 1)
|
|
134
|
+
writei8(c.buf, c.offset, value)
|
|
135
|
+
c.offset += 1
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
function Flare.writei16(c: Cursor, value: number)
|
|
139
|
+
ensure(c, 2)
|
|
140
|
+
writei16(c.buf, c.offset, value)
|
|
141
|
+
c.offset += 2
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
function Flare.writei32(c: Cursor, value: number)
|
|
145
|
+
ensure(c, 4)
|
|
146
|
+
writei32(c.buf, c.offset, value)
|
|
147
|
+
c.offset += 4
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
function Flare.writef32(c: Cursor, value: number)
|
|
151
|
+
ensure(c, 4)
|
|
152
|
+
writef32(c.buf, c.offset, value)
|
|
153
|
+
c.offset += 4
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
function Flare.writef64(c: Cursor, value: number)
|
|
157
|
+
ensure(c, 8)
|
|
158
|
+
writef64(c.buf, c.offset, value)
|
|
159
|
+
c.offset += 8
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
function Flare.writebool(c: Cursor, value: boolean)
|
|
163
|
+
Flare.writeu8(c, if value then 1 else 0)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
function Flare.writestring(c: Cursor, value: string)
|
|
167
|
+
local n = #value
|
|
168
|
+
if n > 65535 then
|
|
169
|
+
error("Flare string exceeds 65535 bytes")
|
|
170
|
+
end
|
|
171
|
+
ensure(c, 2 + n)
|
|
172
|
+
writeu16(c.buf, c.offset, n)
|
|
173
|
+
writestring(c.buf, c.offset + 2, value)
|
|
174
|
+
c.offset += 2 + n
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
function Flare.writeVector3(c: Cursor, value: Vector3)
|
|
178
|
+
ensure(c, 12)
|
|
179
|
+
writef32(c.buf, c.offset, value.X)
|
|
180
|
+
writef32(c.buf, c.offset + 4, value.Y)
|
|
181
|
+
writef32(c.buf, c.offset + 8, value.Z)
|
|
182
|
+
c.offset += 12
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
function Flare.writeVector2(c: Cursor, value: Vector2)
|
|
186
|
+
ensure(c, 8)
|
|
187
|
+
writef32(c.buf, c.offset, value.X)
|
|
188
|
+
writef32(c.buf, c.offset + 4, value.Y)
|
|
189
|
+
c.offset += 8
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
function Flare.writeCFrame(c: Cursor, value: CFrame)
|
|
193
|
+
local x, y, z, r00, r01, r02, r10, r11, r12, r20, r21, r22 = value:GetComponents()
|
|
194
|
+
ensure(c, 48)
|
|
195
|
+
writef32(c.buf, c.offset, x)
|
|
196
|
+
writef32(c.buf, c.offset + 4, y)
|
|
197
|
+
writef32(c.buf, c.offset + 8, z)
|
|
198
|
+
writef32(c.buf, c.offset + 12, r00)
|
|
199
|
+
writef32(c.buf, c.offset + 16, r01)
|
|
200
|
+
writef32(c.buf, c.offset + 20, r02)
|
|
201
|
+
writef32(c.buf, c.offset + 24, r10)
|
|
202
|
+
writef32(c.buf, c.offset + 28, r11)
|
|
203
|
+
writef32(c.buf, c.offset + 32, r12)
|
|
204
|
+
writef32(c.buf, c.offset + 36, r20)
|
|
205
|
+
writef32(c.buf, c.offset + 40, r21)
|
|
206
|
+
writef32(c.buf, c.offset + 44, r22)
|
|
207
|
+
c.offset += 48
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
function Flare.writeColor3(c: Cursor, value: Color3)
|
|
211
|
+
ensure(c, 3)
|
|
212
|
+
writeu8(c.buf, c.offset, math.floor(value.R * 255 + 0.5))
|
|
213
|
+
writeu8(c.buf, c.offset + 1, math.floor(value.G * 255 + 0.5))
|
|
214
|
+
writeu8(c.buf, c.offset + 2, math.floor(value.B * 255 + 0.5))
|
|
215
|
+
c.offset += 3
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
function Flare.writeUDim(c: Cursor, value: UDim)
|
|
219
|
+
ensure(c, 8)
|
|
220
|
+
writef32(c.buf, c.offset, value.Scale)
|
|
221
|
+
writei32(c.buf, c.offset + 4, value.Offset)
|
|
222
|
+
c.offset += 8
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
function Flare.writeUDim2(c: Cursor, value: UDim2)
|
|
226
|
+
Flare.writeUDim(c, value.X)
|
|
227
|
+
Flare.writeUDim(c, value.Y)
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
function Flare.writeBrickColor(c: Cursor, value: BrickColor)
|
|
231
|
+
Flare.writeu16(c, value.Number)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
function Flare.writebuffer(c: Cursor, value: buffer)
|
|
235
|
+
local n = bufferLen(value)
|
|
236
|
+
if n > 65535 then
|
|
237
|
+
error("Flare buffer exceeds 65535 bytes")
|
|
238
|
+
end
|
|
239
|
+
ensure(c, 2 + n)
|
|
240
|
+
writeu16(c.buf, c.offset, n)
|
|
241
|
+
bufferCopy(c.buf, c.offset + 2, value, 0, n)
|
|
242
|
+
c.offset += 2 + n
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
function Flare.writeInstance(c: Cursor, value: Instance?)
|
|
246
|
+
local slot = c.index
|
|
247
|
+
if slot > 65535 then
|
|
248
|
+
error("Flare instance slot exceeds 65535")
|
|
249
|
+
end
|
|
250
|
+
c.instances[slot] = value :: Instance
|
|
251
|
+
c.index = slot + 1
|
|
252
|
+
Flare.writeu16(c, slot)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
function Flare.readu8(c: Cursor): number
|
|
256
|
+
local value = readu8(c.buf, c.offset)
|
|
257
|
+
c.offset += 1
|
|
258
|
+
return value
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
function Flare.readu16(c: Cursor): number
|
|
262
|
+
local value = readu16(c.buf, c.offset)
|
|
263
|
+
c.offset += 2
|
|
264
|
+
return value
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
function Flare.readu32(c: Cursor): number
|
|
268
|
+
local value = readu32(c.buf, c.offset)
|
|
269
|
+
c.offset += 4
|
|
270
|
+
return value
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
function Flare.readi8(c: Cursor): number
|
|
274
|
+
local value = readi8(c.buf, c.offset)
|
|
275
|
+
c.offset += 1
|
|
276
|
+
return value
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
function Flare.readi16(c: Cursor): number
|
|
280
|
+
local value = readi16(c.buf, c.offset)
|
|
281
|
+
c.offset += 2
|
|
282
|
+
return value
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
function Flare.readi32(c: Cursor): number
|
|
286
|
+
local value = readi32(c.buf, c.offset)
|
|
287
|
+
c.offset += 4
|
|
288
|
+
return value
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
function Flare.readf32(c: Cursor): number
|
|
292
|
+
local value = readf32(c.buf, c.offset)
|
|
293
|
+
c.offset += 4
|
|
294
|
+
return value
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
function Flare.readf64(c: Cursor): number
|
|
298
|
+
local value = readf64(c.buf, c.offset)
|
|
299
|
+
c.offset += 8
|
|
300
|
+
return value
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
function Flare.readbool(c: Cursor): boolean
|
|
304
|
+
return Flare.readu8(c) == 1
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
function Flare.readstring(c: Cursor): string
|
|
308
|
+
local n = readu16(c.buf, c.offset)
|
|
309
|
+
local value = readstring(c.buf, c.offset + 2, n)
|
|
310
|
+
c.offset += 2 + n
|
|
311
|
+
return value
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
function Flare.readVector3(c: Cursor): Vector3
|
|
315
|
+
local x = readf32(c.buf, c.offset)
|
|
316
|
+
local y = readf32(c.buf, c.offset + 4)
|
|
317
|
+
local z = readf32(c.buf, c.offset + 8)
|
|
318
|
+
c.offset += 12
|
|
319
|
+
return Vector3.new(x, y, z)
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
function Flare.readVector2(c: Cursor): Vector2
|
|
323
|
+
local x = readf32(c.buf, c.offset)
|
|
324
|
+
local y = readf32(c.buf, c.offset + 4)
|
|
325
|
+
c.offset += 8
|
|
326
|
+
return Vector2.new(x, y)
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
function Flare.readCFrame(c: Cursor): CFrame
|
|
330
|
+
local x = readf32(c.buf, c.offset)
|
|
331
|
+
local y = readf32(c.buf, c.offset + 4)
|
|
332
|
+
local z = readf32(c.buf, c.offset + 8)
|
|
333
|
+
local r00 = readf32(c.buf, c.offset + 12)
|
|
334
|
+
local r01 = readf32(c.buf, c.offset + 16)
|
|
335
|
+
local r02 = readf32(c.buf, c.offset + 20)
|
|
336
|
+
local r10 = readf32(c.buf, c.offset + 24)
|
|
337
|
+
local r11 = readf32(c.buf, c.offset + 28)
|
|
338
|
+
local r12 = readf32(c.buf, c.offset + 32)
|
|
339
|
+
local r20 = readf32(c.buf, c.offset + 36)
|
|
340
|
+
local r21 = readf32(c.buf, c.offset + 40)
|
|
341
|
+
local r22 = readf32(c.buf, c.offset + 44)
|
|
342
|
+
c.offset += 48
|
|
343
|
+
return CFrame.new(x, y, z, r00, r01, r02, r10, r11, r12, r20, r21, r22)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
function Flare.readColor3(c: Cursor): Color3
|
|
347
|
+
local r = readu8(c.buf, c.offset)
|
|
348
|
+
local g = readu8(c.buf, c.offset + 1)
|
|
349
|
+
local b = readu8(c.buf, c.offset + 2)
|
|
350
|
+
c.offset += 3
|
|
351
|
+
return Color3.fromRGB(r, g, b)
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
function Flare.readUDim(c: Cursor): UDim
|
|
355
|
+
local scale = readf32(c.buf, c.offset)
|
|
356
|
+
local offset = readi32(c.buf, c.offset + 4)
|
|
357
|
+
c.offset += 8
|
|
358
|
+
return UDim.new(scale, offset)
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
function Flare.readUDim2(c: Cursor): UDim2
|
|
362
|
+
return UDim2.new(Flare.readUDim(c), Flare.readUDim(c))
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
function Flare.readBrickColor(c: Cursor): BrickColor
|
|
366
|
+
return BrickColor.new(Flare.readu16(c))
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
function Flare.readbuffer(c: Cursor): buffer
|
|
370
|
+
local n = readu16(c.buf, c.offset)
|
|
371
|
+
local copy = bufferCreate(n)
|
|
372
|
+
bufferCopy(copy, 0, c.buf, c.offset + 2, n)
|
|
373
|
+
c.offset += 2 + n
|
|
374
|
+
return copy
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
function Flare.readInstance(c: Cursor): Instance?
|
|
378
|
+
local slot = Flare.readu16(c)
|
|
379
|
+
return c.instances[slot]
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
local function remotes(host: ModuleScript)
|
|
383
|
+
local folder = host:FindFirstChild("Remotes")
|
|
384
|
+
if folder and folder:IsA("Folder") then
|
|
385
|
+
return folder
|
|
386
|
+
end
|
|
387
|
+
if RunService:IsServer() then
|
|
388
|
+
local created = Instance.new("Folder")
|
|
389
|
+
created.Name = "Remotes"
|
|
390
|
+
local reliable = Instance.new("RemoteEvent")
|
|
391
|
+
reliable.Name = "Reliable"
|
|
392
|
+
reliable.Parent = created
|
|
393
|
+
local unreliable = Instance.new("UnreliableRemoteEvent")
|
|
394
|
+
unreliable.Name = "Unreliable"
|
|
395
|
+
unreliable.Parent = created
|
|
396
|
+
local invoke = Instance.new("RemoteFunction")
|
|
397
|
+
invoke.Name = "Invoke"
|
|
398
|
+
invoke.Parent = created
|
|
399
|
+
created.Parent = host
|
|
400
|
+
return created
|
|
401
|
+
end
|
|
402
|
+
return host:WaitForChild("Remotes") :: Folder
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
local function packBatch(queue: { Queued }): (buffer, { Instance }, number)
|
|
406
|
+
local instances = {}
|
|
407
|
+
local instn = 0
|
|
408
|
+
local size = 2
|
|
409
|
+
for _, item in queue do
|
|
410
|
+
size += 1 + 2 + item.cursor.offset
|
|
411
|
+
local n = instanceCount(item.cursor)
|
|
412
|
+
for i = 1, n do
|
|
413
|
+
instn += 1
|
|
414
|
+
instances[instn] = item.cursor.instances[i]
|
|
415
|
+
end
|
|
416
|
+
end
|
|
417
|
+
if #queue > 65535 then
|
|
418
|
+
error("Flare batch exceeds 65535 packets")
|
|
419
|
+
end
|
|
420
|
+
local buf = bufferCreate(size)
|
|
421
|
+
writeu16(buf, 0, #queue)
|
|
422
|
+
local offset = 2
|
|
423
|
+
for _, item in queue do
|
|
424
|
+
if item.cursor.offset > 65535 then
|
|
425
|
+
error("Flare packet exceeds 65535 bytes")
|
|
426
|
+
end
|
|
427
|
+
writeu8(buf, offset, item.id)
|
|
428
|
+
writeu16(buf, offset + 1, item.cursor.offset)
|
|
429
|
+
bufferCopy(buf, offset + 3, item.cursor.buf, 0, item.cursor.offset)
|
|
430
|
+
offset += 3 + item.cursor.offset
|
|
431
|
+
end
|
|
432
|
+
return buf, instances, instn
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
local function fireRemote(remote: Instance, isServer: boolean, player: Player?, buf: buffer, instances: { Instance }, count: number)
|
|
436
|
+
if isServer then
|
|
437
|
+
if player then
|
|
438
|
+
(remote :: RemoteEvent):FireClient(player, buf, table.unpack(instances, 1, count))
|
|
439
|
+
else
|
|
440
|
+
(remote :: RemoteEvent):FireAllClients(buf, table.unpack(instances, 1, count))
|
|
441
|
+
end
|
|
442
|
+
else
|
|
443
|
+
(remote :: RemoteEvent):FireServer(buf, table.unpack(instances, 1, count))
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
function Flare.open(host: ModuleScript)
|
|
448
|
+
local folder = remotes(host)
|
|
449
|
+
local reliable = folder:WaitForChild("Reliable") :: RemoteEvent
|
|
450
|
+
local unreliable = folder:WaitForChild("Unreliable") :: UnreliableRemoteEvent
|
|
451
|
+
local invoke = folder:WaitForChild("Invoke") :: RemoteFunction
|
|
452
|
+
local isServer = RunService:IsServer()
|
|
453
|
+
|
|
454
|
+
local packetById: { [number]: PacketSpec } = {}
|
|
455
|
+
local queryById: { [number]: QuerySpec } = {}
|
|
456
|
+
local listeners: { [number]: { (any) -> () } } = {}
|
|
457
|
+
local queryHandlers: { [number]: (any) -> any } = {}
|
|
458
|
+
|
|
459
|
+
local clientQueueR: { Queued } = {}
|
|
460
|
+
local clientQueueU: { Queued } = {}
|
|
461
|
+
local serverQueueR: { [Player]: { Queued } } = {}
|
|
462
|
+
local serverQueueU: { [Player]: { Queued } } = {}
|
|
463
|
+
local broadcastR: { Queued } = {}
|
|
464
|
+
local broadcastU: { Queued } = {}
|
|
465
|
+
|
|
466
|
+
local function queueFor(reliableFlag: boolean, player: Player?): { Queued }
|
|
467
|
+
if isServer then
|
|
468
|
+
if player then
|
|
469
|
+
local map = if reliableFlag then serverQueueR else serverQueueU
|
|
470
|
+
local list = map[player]
|
|
471
|
+
if not list then
|
|
472
|
+
list = {}
|
|
473
|
+
map[player] = list
|
|
474
|
+
end
|
|
475
|
+
return list
|
|
476
|
+
end
|
|
477
|
+
return if reliableFlag then broadcastR else broadcastU
|
|
478
|
+
end
|
|
479
|
+
return if reliableFlag then clientQueueR else clientQueueU
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
local function flushList(remote: Instance, list: { Queued }, player: Player?)
|
|
483
|
+
if #list == 0 then
|
|
484
|
+
return
|
|
485
|
+
end
|
|
486
|
+
local buf, instances, instn = packBatch(list)
|
|
487
|
+
table.clear(list)
|
|
488
|
+
fireRemote(remote, isServer, player, buf, instances, instn)
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
local function forgetPlayer(player: Player)
|
|
492
|
+
serverQueueR[player] = nil
|
|
493
|
+
serverQueueU[player] = nil
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
local function callListener(cb: (any) -> (), player: Player?, ...)
|
|
497
|
+
if player then
|
|
498
|
+
cb(player, ...)
|
|
499
|
+
else
|
|
500
|
+
cb(...)
|
|
501
|
+
end
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
local function callHandler(handler: (any) -> any, player: Player, ...)
|
|
505
|
+
return handler(player, ...)
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
local function dispatch(fromPlayer: Player?, buf: buffer, instances: { Instance })
|
|
509
|
+
if fromPlayer then
|
|
510
|
+
if typeof(buf) ~= "buffer" then
|
|
511
|
+
Ward.Strike(fromPlayer, "flare:type")
|
|
512
|
+
return
|
|
513
|
+
end
|
|
514
|
+
if not Ward.Packet(fromPlayer, buffer.len(buf)) then
|
|
515
|
+
return
|
|
516
|
+
end
|
|
517
|
+
if not Ward.Allow(fromPlayer, "flare", 60, 120) then
|
|
518
|
+
return
|
|
519
|
+
end
|
|
520
|
+
end
|
|
521
|
+
local ok = pcall(function()
|
|
522
|
+
local incoming = fromBuffer(buf, instances)
|
|
523
|
+
local count = Flare.readu16(incoming)
|
|
524
|
+
if count > 64 then
|
|
525
|
+
if fromPlayer then
|
|
526
|
+
Ward.Strike(fromPlayer, "flare:batch")
|
|
527
|
+
end
|
|
528
|
+
return
|
|
529
|
+
end
|
|
530
|
+
for _ = 1, count do
|
|
531
|
+
local id = Flare.readu8(incoming)
|
|
532
|
+
local size = Flare.readu16(incoming)
|
|
533
|
+
if size > Ward.MaxPacketBytes then
|
|
534
|
+
if fromPlayer then
|
|
535
|
+
Ward.Strike(fromPlayer, "flare:size")
|
|
536
|
+
end
|
|
537
|
+
return
|
|
538
|
+
end
|
|
539
|
+
local payload = bufferCreate(size)
|
|
540
|
+
bufferCopy(payload, 0, incoming.buf, incoming.offset, size)
|
|
541
|
+
incoming.offset += size
|
|
542
|
+
local spec = packetById[id]
|
|
543
|
+
local cbs = listeners[id]
|
|
544
|
+
if spec and fromPlayer and spec.from ~= "client" then
|
|
545
|
+
Ward.Strike(fromPlayer, "flare:dir")
|
|
546
|
+
continue
|
|
547
|
+
end
|
|
548
|
+
if spec and cbs then
|
|
549
|
+
local inner = fromBuffer(payload, instances)
|
|
550
|
+
local values = table.pack(spec.read(inner))
|
|
551
|
+
for _, cb in cbs do
|
|
552
|
+
callListener(cb, fromPlayer, table.unpack(values, 1, values.n))
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
end
|
|
556
|
+
end)
|
|
557
|
+
if not ok and fromPlayer then
|
|
558
|
+
Ward.Strike(fromPlayer, "flare:decode")
|
|
559
|
+
end
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
if isServer then
|
|
563
|
+
reliable.OnServerEvent:Connect(function(player: Player, buf: buffer, ...: Instance)
|
|
564
|
+
dispatch(player, buf, table.pack(...) :: any)
|
|
565
|
+
end)
|
|
566
|
+
unreliable.OnServerEvent:Connect(function(player: Player, buf: buffer, ...: Instance)
|
|
567
|
+
dispatch(player, buf, table.pack(...) :: any)
|
|
568
|
+
end)
|
|
569
|
+
invoke.OnServerInvoke = function(player: Player, buf: buffer, ...: Instance)
|
|
570
|
+
if typeof(buf) ~= "buffer" then
|
|
571
|
+
Ward.Strike(player, "flare:query-type")
|
|
572
|
+
return bufferCreate(0)
|
|
573
|
+
end
|
|
574
|
+
if not Ward.Packet(player, buffer.len(buf)) then
|
|
575
|
+
return bufferCreate(0)
|
|
576
|
+
end
|
|
577
|
+
if not Ward.Allow(player, "flare:query", 10, 20) then
|
|
578
|
+
return bufferCreate(0)
|
|
579
|
+
end
|
|
580
|
+
local results = table.pack(pcall(function()
|
|
581
|
+
local incoming = fromBuffer(buf, table.pack(...) :: any)
|
|
582
|
+
local id = Flare.readu8(incoming)
|
|
583
|
+
local spec = queryById[id]
|
|
584
|
+
local handler = queryHandlers[id]
|
|
585
|
+
if not spec or not handler then
|
|
586
|
+
return bufferCreate(0)
|
|
587
|
+
end
|
|
588
|
+
local result = callHandler(handler, player, spec.readReq(incoming))
|
|
589
|
+
local out = spec.writeRes(cursor(16), result)
|
|
590
|
+
return sliceCursor(out), table.unpack(out.instances, 1, instanceCount(out))
|
|
591
|
+
end))
|
|
592
|
+
if results[1] ~= true then
|
|
593
|
+
Ward.Strike(player, "flare:query-decode")
|
|
594
|
+
return bufferCreate(0)
|
|
595
|
+
end
|
|
596
|
+
return table.unpack(results, 2, results.n)
|
|
597
|
+
end
|
|
598
|
+
Players.PlayerRemoving:Connect(forgetPlayer)
|
|
599
|
+
else
|
|
600
|
+
reliable.OnClientEvent:Connect(function(buf: buffer, ...: Instance)
|
|
601
|
+
dispatch(nil, buf, table.pack(...) :: any)
|
|
602
|
+
end)
|
|
603
|
+
unreliable.OnClientEvent:Connect(function(buf: buffer, ...: Instance)
|
|
604
|
+
dispatch(nil, buf, table.pack(...) :: any)
|
|
605
|
+
end)
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
RunService.Heartbeat:Connect(function()
|
|
609
|
+
if isServer then
|
|
610
|
+
flushList(reliable, broadcastR, nil)
|
|
611
|
+
flushList(unreliable, broadcastU, nil)
|
|
612
|
+
for player, list in serverQueueR do
|
|
613
|
+
flushList(reliable, list, player)
|
|
614
|
+
serverQueueR[player] = nil
|
|
615
|
+
end
|
|
616
|
+
for player, list in serverQueueU do
|
|
617
|
+
flushList(unreliable, list, player)
|
|
618
|
+
serverQueueU[player] = nil
|
|
619
|
+
end
|
|
620
|
+
else
|
|
621
|
+
flushList(reliable, clientQueueR, nil)
|
|
622
|
+
flushList(unreliable, clientQueueU, nil)
|
|
623
|
+
end
|
|
624
|
+
end)
|
|
625
|
+
|
|
626
|
+
local session = {}
|
|
627
|
+
|
|
628
|
+
function session.packet(spec: PacketSpec)
|
|
629
|
+
packetById[spec.id] = spec
|
|
630
|
+
local api = {}
|
|
631
|
+
local remote = if spec.reliable then reliable else unreliable
|
|
632
|
+
|
|
633
|
+
local function enqueue(player: Player?, ...)
|
|
634
|
+
local written = spec.write(cursor(32), ...)
|
|
635
|
+
local item = { id = spec.id, cursor = written }
|
|
636
|
+
if instanceCount(written) > 0 then
|
|
637
|
+
flushList(remote, { item }, player)
|
|
638
|
+
return
|
|
639
|
+
end
|
|
640
|
+
table.insert(queueFor(spec.reliable, player), item)
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
if spec.from == "client" then
|
|
644
|
+
function api.FireServer(...)
|
|
645
|
+
assert(not isServer, "FireServer is client-only")
|
|
646
|
+
enqueue(nil, ...)
|
|
647
|
+
end
|
|
648
|
+
else
|
|
649
|
+
function api.Fire(player: Player, ...)
|
|
650
|
+
assert(isServer, "Fire is server-only")
|
|
651
|
+
enqueue(player, ...)
|
|
652
|
+
end
|
|
653
|
+
function api.FireAll(...)
|
|
654
|
+
assert(isServer, "FireAll is server-only")
|
|
655
|
+
enqueue(nil, ...)
|
|
656
|
+
end
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
function api.Connect(callback: (any) -> ()): RBXScriptConnection
|
|
660
|
+
local list = listeners[spec.id]
|
|
661
|
+
if not list then
|
|
662
|
+
list = {}
|
|
663
|
+
listeners[spec.id] = list
|
|
664
|
+
end
|
|
665
|
+
table.insert(list, callback)
|
|
666
|
+
return {
|
|
667
|
+
Connected = true,
|
|
668
|
+
Disconnect = function(self)
|
|
669
|
+
self.Connected = false
|
|
670
|
+
local i = table.find(list, callback)
|
|
671
|
+
if i then
|
|
672
|
+
table.remove(list, i)
|
|
673
|
+
end
|
|
674
|
+
end,
|
|
675
|
+
} :: any
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
return api
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
function session.query(spec: QuerySpec)
|
|
682
|
+
queryById[spec.id] = spec
|
|
683
|
+
local api = {}
|
|
684
|
+
|
|
685
|
+
function api.Invoke(...)
|
|
686
|
+
if isServer then
|
|
687
|
+
error("query.Invoke is client-only")
|
|
688
|
+
end
|
|
689
|
+
local out = spec.writeReq(cursor(32), ...)
|
|
690
|
+
local buf = bufferCreate(1 + out.offset)
|
|
691
|
+
writeu8(buf, 0, spec.id)
|
|
692
|
+
bufferCopy(buf, 1, out.buf, 0, out.offset)
|
|
693
|
+
local packed = table.pack(invoke:InvokeServer(buf, table.unpack(out.instances, 1, instanceCount(out))))
|
|
694
|
+
local reply = packed[1]
|
|
695
|
+
local instances = {}
|
|
696
|
+
for i = 2, packed.n do
|
|
697
|
+
instances[i - 1] = packed[i]
|
|
698
|
+
end
|
|
699
|
+
if typeof(reply) ~= "buffer" then
|
|
700
|
+
return nil
|
|
701
|
+
end
|
|
702
|
+
return spec.readRes(fromBuffer(reply :: buffer, instances :: { Instance }))
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
function api.On(callback: (any) -> any)
|
|
706
|
+
assert(isServer, "query.On is server-only")
|
|
707
|
+
queryHandlers[spec.id] = callback
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
return api
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
return session
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
return Flare
|