cluaupp 0.1.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 +20 -0
- package/LICENSE +21 -0
- package/README.md +119 -0
- package/bin/cluau.js +4 -0
- package/bin/cluaupp.js +4 -0
- package/docs/README.md +20 -0
- package/docs/architecture.md +110 -0
- package/docs/cli.md +69 -0
- package/docs/comparison.md +37 -0
- package/docs/config.md +31 -0
- package/docs/cpp-advanced.md +71 -0
- package/docs/cpp-const.md +52 -0
- package/docs/cpp-organization.md +61 -0
- package/docs/cpp-safety.md +58 -0
- package/docs/cpp-types.md +66 -0
- package/docs/getting-started.md +169 -0
- package/docs/intro.md +37 -0
- package/docs/libraries.md +77 -0
- package/docs/roblox-api.md +81 -0
- package/docs/syntax.md +131 -0
- package/include/cluaupp/datatypes.hpp +581 -0
- package/include/cluaupp/generated/enums.hpp +4920 -0
- package/include/cluaupp/generated/instances.hpp +12489 -0
- package/include/cluaupp/libs/chrono.hpp +26 -0
- package/include/cluaupp/libs/cmdr.hpp +16 -0
- package/include/cluaupp/libs/dataservice.hpp +141 -0
- package/include/cluaupp/libs/display.hpp +13 -0
- package/include/cluaupp/libs/ezvisual.hpp +18 -0
- package/include/cluaupp/libs/formatnumber.hpp +15 -0
- package/include/cluaupp/libs/fusion.hpp +41 -0
- package/include/cluaupp/libs/iris.hpp +40 -0
- package/include/cluaupp/libs/janitor.hpp +35 -0
- package/include/cluaupp/libs/math.hpp +14 -0
- package/include/cluaupp/libs/module3d.hpp +25 -0
- package/include/cluaupp/libs/net.hpp +42 -0
- package/include/cluaupp/libs/promise.hpp +30 -0
- package/include/cluaupp/libs/spring.hpp +18 -0
- package/include/cluaupp/libs/statemachine.hpp +19 -0
- package/include/cluaupp/libs/stickybillboard.hpp +14 -0
- package/include/cluaupp/libs/topbarplus.hpp +29 -0
- package/include/cluaupp/libs/twinkle.hpp +15 -0
- package/include/cluaupp/libs/vfx.hpp +13 -0
- package/include/cluaupp/libs.hpp +25 -0
- package/include/cluaupp/roblox.hpp +28 -0
- package/package.json +65 -0
- package/runtime/ArrayIndexer/init.luau +144 -0
- package/runtime/Chrono/Client/ClientClock.luau +202 -0
- package/runtime/Chrono/Client/InterpolationBuffer.luau +74 -0
- package/runtime/Chrono/Client/ModelResolver.luau +53 -0
- package/runtime/Chrono/Client/Player.luau +113 -0
- package/runtime/Chrono/Client/Receiver.luau +395 -0
- package/runtime/Chrono/Client/Replicate.luau +333 -0
- package/runtime/Chrono/Client/Sender.luau +205 -0
- package/runtime/Chrono/LICENSE +21 -0
- package/runtime/Chrono/Server/EntityGrid.luau +299 -0
- package/runtime/Chrono/Server/Player.luau +141 -0
- package/runtime/Chrono/Server/Receiver.luau +287 -0
- package/runtime/Chrono/Server/Replicate.luau +415 -0
- package/runtime/Chrono/Server/Sender.luau +306 -0
- package/runtime/Chrono/Server/ServerClock.luau +50 -0
- package/runtime/Chrono/Shared/ApplyMounts.luau +137 -0
- package/runtime/Chrono/Shared/Bin.luau +31 -0
- package/runtime/Chrono/Shared/ClockUnwrap.luau +70 -0
- package/runtime/Chrono/Shared/Config.luau +264 -0
- package/runtime/Chrono/Shared/Entity.luau +1016 -0
- package/runtime/Chrono/Shared/Events.luau +39 -0
- package/runtime/Chrono/Shared/Holder.luau +210 -0
- package/runtime/Chrono/Shared/InterpolationMath.luau +51 -0
- package/runtime/Chrono/Shared/ModelHelper.luau +122 -0
- package/runtime/Chrono/Shared/Remotes/ClientClockRelay.model.json +3 -0
- package/runtime/Chrono/Shared/Remotes/ClientHeartbeat.model.json +3 -0
- package/runtime/Chrono/Shared/Remotes/ClientLoaded.model.json +3 -0
- package/runtime/Chrono/Shared/Remotes/Death.model.json +3 -0
- package/runtime/Chrono/Shared/Remotes/Heartbeat.model.json +3 -0
- package/runtime/Chrono/Shared/Remotes/Replicate.model.json +3 -0
- package/runtime/Chrono/Shared/Remotes/ReplicateFull.model.json +3 -0
- package/runtime/Chrono/Shared/Remotes/SafeReplicate.model.json +3 -0
- package/runtime/Chrono/Shared/ReplicationRules.luau +122 -0
- package/runtime/Chrono/Shared/Signal.luau +219 -0
- package/runtime/Chrono/Shared/Snapshots.luau +218 -0
- package/runtime/Chrono/Shared/Stats.luau +204 -0
- package/runtime/Chrono/Shared/Ticker.luau +112 -0
- package/runtime/Chrono/Shared/Types.luau +247 -0
- package/runtime/Chrono/Shared/Warn.luau +33 -0
- package/runtime/Chrono/Shared/_CUSTOM_MODEL_REP/init.model.json +3 -0
- package/runtime/Chrono/_impl/Client/ClientClock.luau +202 -0
- package/runtime/Chrono/_impl/Client/InterpolationBuffer.luau +74 -0
- package/runtime/Chrono/_impl/Client/ModelResolver.luau +53 -0
- package/runtime/Chrono/_impl/Client/Player.luau +113 -0
- package/runtime/Chrono/_impl/Client/Receiver.luau +395 -0
- package/runtime/Chrono/_impl/Client/Replicate.luau +333 -0
- package/runtime/Chrono/_impl/Client/Sender.luau +205 -0
- package/runtime/Chrono/_impl/LICENSE +21 -0
- package/runtime/Chrono/_impl/Server/EntityGrid.luau +299 -0
- package/runtime/Chrono/_impl/Server/Player.luau +141 -0
- package/runtime/Chrono/_impl/Server/Receiver.luau +287 -0
- package/runtime/Chrono/_impl/Server/Replicate.luau +415 -0
- package/runtime/Chrono/_impl/Server/Sender.luau +306 -0
- package/runtime/Chrono/_impl/Server/ServerClock.luau +50 -0
- package/runtime/Chrono/_impl/Shared/ApplyMounts.luau +137 -0
- package/runtime/Chrono/_impl/Shared/Bin.luau +31 -0
- package/runtime/Chrono/_impl/Shared/ClockUnwrap.luau +70 -0
- package/runtime/Chrono/_impl/Shared/Config.luau +264 -0
- package/runtime/Chrono/_impl/Shared/Entity.luau +1016 -0
- package/runtime/Chrono/_impl/Shared/Events.luau +39 -0
- package/runtime/Chrono/_impl/Shared/Holder.luau +210 -0
- package/runtime/Chrono/_impl/Shared/InterpolationMath.luau +51 -0
- package/runtime/Chrono/_impl/Shared/ModelHelper.luau +122 -0
- package/runtime/Chrono/_impl/Shared/Remotes/ClientClockRelay.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/Remotes/ClientHeartbeat.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/Remotes/ClientLoaded.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/Remotes/Death.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/Remotes/Heartbeat.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/Remotes/Replicate.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/Remotes/ReplicateFull.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/Remotes/SafeReplicate.model.json +3 -0
- package/runtime/Chrono/_impl/Shared/ReplicationRules.luau +122 -0
- package/runtime/Chrono/_impl/Shared/Signal.luau +219 -0
- package/runtime/Chrono/_impl/Shared/Snapshots.luau +218 -0
- package/runtime/Chrono/_impl/Shared/Stats.luau +204 -0
- package/runtime/Chrono/_impl/Shared/Ticker.luau +112 -0
- package/runtime/Chrono/_impl/Shared/Types.luau +247 -0
- package/runtime/Chrono/_impl/Shared/Warn.luau +33 -0
- package/runtime/Chrono/_impl/Shared/_CUSTOM_MODEL_REP/init.model.json +3 -0
- package/runtime/Chrono/_impl/init.luau +96 -0
- package/runtime/Chrono/init.luau +14 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/announce.luau +21 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/announceServer.luau +17 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/ban.luau +59 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/banServer.luau +30 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/gotoPlace.luau +35 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/gotoPlaceServer.luau +17 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/kick.luau +19 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/kickServer.luau +27 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/kill.luau +13 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/killServer.luau +13 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/respawn.luau +15 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/respawnServer.luau +7 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/teleport.luau +30 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/teleportServer.luau +26 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/unban.luau +26 -0
- package/runtime/Cmdr/BuiltInCommands/Admin/unbanServer.luau +10 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/blink.luau +35 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/fetch.luau +12 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/fetchServer.luau +7 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstance.luau +20 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/getPlayerPlaceInstanceServer.luau +28 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/position.luau +30 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/thru.luau +50 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/uptime.luau +6 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/uptimeServer.luau +12 -0
- package/runtime/Cmdr/BuiltInCommands/Debug/version.luau +12 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/alias.luau +22 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/bind.luau +104 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/clear.luau +20 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/convertTimestamp.luau +18 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/echo.luau +17 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/edit.luau +75 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/exit.luau +11 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/history.luau +27 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/hover.luau +21 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/jsonArrayDecode.luau +25 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/jsonArrayEncode.luau +18 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/len.luau +16 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/math.luau +36 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/pick.luau +21 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/rand.luau +27 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/replace.luau +32 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/resolve.luau +32 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/run.luau +20 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/runLines.luau +34 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/runif.luau +95 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/unbind.luau +27 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/var.luau +29 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/varServer.luau +37 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/varSet.luau +30 -0
- package/runtime/Cmdr/BuiltInCommands/Utility/varSetServer.luau +29 -0
- package/runtime/Cmdr/BuiltInCommands/help.luau +96 -0
- package/runtime/Cmdr/BuiltInTypes/BrickColor.luau +258 -0
- package/runtime/Cmdr/BuiltInTypes/Color3.luau +59 -0
- package/runtime/Cmdr/BuiltInTypes/Command.luau +23 -0
- package/runtime/Cmdr/BuiltInTypes/Duration.luau +111 -0
- package/runtime/Cmdr/BuiltInTypes/JSON.luau +13 -0
- package/runtime/Cmdr/BuiltInTypes/MathOperator.luau +43 -0
- package/runtime/Cmdr/BuiltInTypes/Player.luau +36 -0
- package/runtime/Cmdr/BuiltInTypes/PlayerId.luau +66 -0
- package/runtime/Cmdr/BuiltInTypes/Primitives.luau +145 -0
- package/runtime/Cmdr/BuiltInTypes/StoredKey.luau +33 -0
- package/runtime/Cmdr/BuiltInTypes/Team.luau +49 -0
- package/runtime/Cmdr/BuiltInTypes/Type.luau +23 -0
- package/runtime/Cmdr/BuiltInTypes/URL.luau +18 -0
- package/runtime/Cmdr/BuiltInTypes/UserInput.luau +32 -0
- package/runtime/Cmdr/BuiltInTypes/Vector.luau +58 -0
- package/runtime/Cmdr/CmdrClient/CmdrInterface/AutoComplete.luau +240 -0
- package/runtime/Cmdr/CmdrClient/CmdrInterface/CreateGui.luau +227 -0
- package/runtime/Cmdr/CmdrClient/CmdrInterface/Window.luau +713 -0
- package/runtime/Cmdr/CmdrClient/CmdrInterface/init.luau +18 -0
- package/runtime/Cmdr/CmdrClient/DefaultEventHandlers.luau +18 -0
- package/runtime/Cmdr/CmdrClient/Shared/Argument.luau +395 -0
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/HasCharacter.luau +39 -0
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/IsDataStoreAvailable.luau +36 -0
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/MaxArrayLength.luau +10 -0
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/MaxStringLength.luau +10 -0
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/NonEmptyString.luau +10 -0
- package/runtime/Cmdr/CmdrClient/Shared/BuiltInGuards/NotEquals.luau +8 -0
- package/runtime/Cmdr/CmdrClient/Shared/Command.luau +415 -0
- package/runtime/Cmdr/CmdrClient/Shared/Dispatcher.luau +407 -0
- package/runtime/Cmdr/CmdrClient/Shared/Registry.luau +717 -0
- package/runtime/Cmdr/CmdrClient/Shared/Util.luau +879 -0
- package/runtime/Cmdr/CmdrClient/init.luau +377 -0
- package/runtime/Cmdr/LICENSE +21 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/announce.luau +21 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/announceServer.luau +17 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/ban.luau +59 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/banServer.luau +30 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/gotoPlace.luau +35 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/gotoPlaceServer.luau +17 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/kick.luau +19 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/kickServer.luau +27 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/kill.luau +13 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/killServer.luau +13 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/respawn.luau +15 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/respawnServer.luau +7 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/teleport.luau +30 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/teleportServer.luau +26 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/unban.luau +26 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Admin/unbanServer.luau +10 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/blink.luau +35 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/fetch.luau +12 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/fetchServer.luau +7 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/getPlayerPlaceInstance.luau +20 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/getPlayerPlaceInstanceServer.luau +28 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/position.luau +30 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/thru.luau +50 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/uptime.luau +6 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/uptimeServer.luau +12 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Debug/version.luau +12 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/alias.luau +22 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/bind.luau +104 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/clear.luau +20 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/convertTimestamp.luau +18 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/echo.luau +17 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/edit.luau +75 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/exit.luau +11 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/history.luau +27 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/hover.luau +21 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/jsonArrayDecode.luau +25 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/jsonArrayEncode.luau +18 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/len.luau +16 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/math.luau +36 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/pick.luau +21 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/rand.luau +27 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/replace.luau +32 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/resolve.luau +32 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/run.luau +20 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/runLines.luau +34 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/runif.luau +95 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/unbind.luau +27 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/var.luau +29 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/varServer.luau +37 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/varSet.luau +30 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/Utility/varSetServer.luau +29 -0
- package/runtime/Cmdr/_impl/BuiltInCommands/help.luau +96 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/BrickColor.luau +258 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Color3.luau +59 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Command.luau +23 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Duration.luau +111 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/JSON.luau +13 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/MathOperator.luau +43 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Player.luau +36 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/PlayerId.luau +66 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Primitives.luau +145 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/StoredKey.luau +33 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Team.luau +49 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Type.luau +23 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/URL.luau +18 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/UserInput.luau +32 -0
- package/runtime/Cmdr/_impl/BuiltInTypes/Vector.luau +58 -0
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/AutoComplete.luau +240 -0
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/CreateGui.luau +227 -0
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/Window.luau +713 -0
- package/runtime/Cmdr/_impl/CmdrClient/CmdrInterface/init.luau +18 -0
- package/runtime/Cmdr/_impl/CmdrClient/DefaultEventHandlers.luau +18 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Argument.luau +395 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/HasCharacter.luau +39 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/IsDataStoreAvailable.luau +36 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/MaxArrayLength.luau +10 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/MaxStringLength.luau +10 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/NonEmptyString.luau +10 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/BuiltInGuards/NotEquals.luau +8 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Command.luau +415 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Dispatcher.luau +407 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Registry.luau +717 -0
- package/runtime/Cmdr/_impl/CmdrClient/Shared/Util.luau +879 -0
- package/runtime/Cmdr/_impl/CmdrClient/init.luau +377 -0
- package/runtime/Cmdr/_impl/LICENSE +21 -0
- package/runtime/Cmdr/_impl/init.luau +178 -0
- package/runtime/Cmdr/init.luau +8 -0
- package/runtime/DataService/Client.luau +209 -0
- package/runtime/DataService/Data.luau +886 -0
- package/runtime/DataService/Enum.luau +6 -0
- package/runtime/DataService/Enums.luau +10 -0
- package/runtime/DataService/Packages/quicknet/DataTypes.luau +70 -0
- package/runtime/DataService/Packages/quicknet/Enums.luau +85 -0
- package/runtime/DataService/Packages/quicknet/EnumsToNativeTypes.luau +57 -0
- package/runtime/DataService/Packages/quicknet/Parser.luau +355 -0
- package/runtime/DataService/Packages/quicknet/QuickNet.luau +953 -0
- package/runtime/DataService/Packages/quicknet/Serialize.luau +2020 -0
- package/runtime/DataService/Packages/quicknet/Types.luau +72 -0
- package/runtime/DataService/Packages/quicknet/init.luau +1 -0
- package/runtime/DataService/Packages/signal/init.luau +433 -0
- package/runtime/DataService/Path.luau +236 -0
- package/runtime/DataService/ProfileStore.luau +2243 -0
- package/runtime/DataService/Replicator.luau +172 -0
- package/runtime/DataService/Server.luau +412 -0
- package/runtime/DataService/init.luau +204 -0
- package/runtime/Display/LICENSE +201 -0
- package/runtime/Display/_impl/LICENSE +201 -0
- package/runtime/Display/_impl/init.luau +269 -0
- package/runtime/Display/_impl/option.luau +237 -0
- package/runtime/Display/init.luau +10 -0
- package/runtime/Display/option.luau +237 -0
- package/runtime/EzVisualz/Dropshadow.luau +148 -0
- package/runtime/EzVisualz/Gradient.luau +452 -0
- package/runtime/EzVisualz/GradientTemplates/Bubblegum.luau +16 -0
- package/runtime/EzVisualz/GradientTemplates/Chrome.luau +16 -0
- package/runtime/EzVisualz/GradientTemplates/Death.luau +15 -0
- package/runtime/EzVisualz/GradientTemplates/Electric.luau +14 -0
- package/runtime/EzVisualz/GradientTemplates/Fire.luau +13 -0
- package/runtime/EzVisualz/GradientTemplates/Galaxy.luau +11 -0
- package/runtime/EzVisualz/GradientTemplates/Ghost.luau +16 -0
- package/runtime/EzVisualz/GradientTemplates/Gold.luau +14 -0
- package/runtime/EzVisualz/GradientTemplates/Green.luau +14 -0
- package/runtime/EzVisualz/GradientTemplates/Ice.luau +14 -0
- package/runtime/EzVisualz/GradientTemplates/Lava.luau +15 -0
- package/runtime/EzVisualz/GradientTemplates/Matrix.luau +19 -0
- package/runtime/EzVisualz/GradientTemplates/Neon.luau +12 -0
- package/runtime/EzVisualz/GradientTemplates/Oceanic.luau +15 -0
- package/runtime/EzVisualz/GradientTemplates/Rainbow.luau +13 -0
- package/runtime/EzVisualz/GradientTemplates/Silver.luau +12 -0
- package/runtime/EzVisualz/GradientTemplates/Sunset.luau +11 -0
- package/runtime/EzVisualz/GradientTemplates/Zebra.luau +18 -0
- package/runtime/EzVisualz/GradientTemplates/init.luau +9 -0
- package/runtime/EzVisualz/LICENSE.md +21 -0
- package/runtime/EzVisualz/Presets/Bubblegum.luau +36 -0
- package/runtime/EzVisualz/Presets/ChromeStroke.luau +15 -0
- package/runtime/EzVisualz/Presets/DeathStroke.luau +15 -0
- package/runtime/EzVisualz/Presets/ElectricStroke.luau +54 -0
- package/runtime/EzVisualz/Presets/FireStroke.luau +29 -0
- package/runtime/EzVisualz/Presets/GalaxyStroke.luau +31 -0
- package/runtime/EzVisualz/Presets/Ghost.luau +10 -0
- package/runtime/EzVisualz/Presets/GhostStroke.luau +15 -0
- package/runtime/EzVisualz/Presets/Gold.luau +10 -0
- package/runtime/EzVisualz/Presets/GoldStroke.luau +15 -0
- package/runtime/EzVisualz/Presets/GreenOutline.luau +23 -0
- package/runtime/EzVisualz/Presets/IceStroke.luau +15 -0
- package/runtime/EzVisualz/Presets/Lava.luau +9 -0
- package/runtime/EzVisualz/Presets/LavaStroke.luau +13 -0
- package/runtime/EzVisualz/Presets/Matrix.luau +21 -0
- package/runtime/EzVisualz/Presets/NeonStroke.luau +30 -0
- package/runtime/EzVisualz/Presets/OceanicStroke.luau +15 -0
- package/runtime/EzVisualz/Presets/Rainbow.luau +9 -0
- package/runtime/EzVisualz/Presets/RainbowOutline.luau +23 -0
- package/runtime/EzVisualz/Presets/RainbowStroke.luau +13 -0
- package/runtime/EzVisualz/Presets/Shine.luau +48 -0
- package/runtime/EzVisualz/Presets/ShineOutline.luau +66 -0
- package/runtime/EzVisualz/Presets/Silver.luau +10 -0
- package/runtime/EzVisualz/Presets/SilverStroke.luau +15 -0
- package/runtime/EzVisualz/Presets/SunsetStroke.luau +31 -0
- package/runtime/EzVisualz/Presets/WaveStroke.luau +33 -0
- package/runtime/EzVisualz/Presets/Zebra.luau +21 -0
- package/runtime/EzVisualz/Presets/init.luau +9 -0
- package/runtime/EzVisualz/Stroke.luau +167 -0
- package/runtime/EzVisualz/Util.luau +7 -0
- package/runtime/EzVisualz/_impl/Dropshadow.luau +148 -0
- package/runtime/EzVisualz/_impl/Gradient.luau +452 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Bubblegum.luau +16 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Chrome.luau +16 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Death.luau +15 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Electric.luau +14 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Fire.luau +13 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Galaxy.luau +11 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Ghost.luau +16 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Gold.luau +14 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Green.luau +14 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Ice.luau +14 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Lava.luau +15 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Matrix.luau +19 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Neon.luau +12 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Oceanic.luau +15 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Rainbow.luau +13 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Silver.luau +12 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Sunset.luau +11 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/Zebra.luau +18 -0
- package/runtime/EzVisualz/_impl/GradientTemplates/init.luau +9 -0
- package/runtime/EzVisualz/_impl/LICENSE.md +21 -0
- package/runtime/EzVisualz/_impl/Presets/Bubblegum.luau +36 -0
- package/runtime/EzVisualz/_impl/Presets/ChromeStroke.luau +15 -0
- package/runtime/EzVisualz/_impl/Presets/DeathStroke.luau +15 -0
- package/runtime/EzVisualz/_impl/Presets/ElectricStroke.luau +54 -0
- package/runtime/EzVisualz/_impl/Presets/FireStroke.luau +29 -0
- package/runtime/EzVisualz/_impl/Presets/GalaxyStroke.luau +31 -0
- package/runtime/EzVisualz/_impl/Presets/Ghost.luau +10 -0
- package/runtime/EzVisualz/_impl/Presets/GhostStroke.luau +15 -0
- package/runtime/EzVisualz/_impl/Presets/Gold.luau +10 -0
- package/runtime/EzVisualz/_impl/Presets/GoldStroke.luau +15 -0
- package/runtime/EzVisualz/_impl/Presets/GreenOutline.luau +23 -0
- package/runtime/EzVisualz/_impl/Presets/IceStroke.luau +15 -0
- package/runtime/EzVisualz/_impl/Presets/Lava.luau +9 -0
- package/runtime/EzVisualz/_impl/Presets/LavaStroke.luau +13 -0
- package/runtime/EzVisualz/_impl/Presets/Matrix.luau +21 -0
- package/runtime/EzVisualz/_impl/Presets/NeonStroke.luau +30 -0
- package/runtime/EzVisualz/_impl/Presets/OceanicStroke.luau +15 -0
- package/runtime/EzVisualz/_impl/Presets/Rainbow.luau +9 -0
- package/runtime/EzVisualz/_impl/Presets/RainbowOutline.luau +23 -0
- package/runtime/EzVisualz/_impl/Presets/RainbowStroke.luau +13 -0
- package/runtime/EzVisualz/_impl/Presets/Shine.luau +48 -0
- package/runtime/EzVisualz/_impl/Presets/ShineOutline.luau +66 -0
- package/runtime/EzVisualz/_impl/Presets/Silver.luau +10 -0
- package/runtime/EzVisualz/_impl/Presets/SilverStroke.luau +15 -0
- package/runtime/EzVisualz/_impl/Presets/SunsetStroke.luau +31 -0
- package/runtime/EzVisualz/_impl/Presets/WaveStroke.luau +33 -0
- package/runtime/EzVisualz/_impl/Presets/Zebra.luau +21 -0
- package/runtime/EzVisualz/_impl/Presets/init.luau +9 -0
- package/runtime/EzVisualz/_impl/Stroke.luau +167 -0
- package/runtime/EzVisualz/_impl/Util.luau +7 -0
- package/runtime/EzVisualz/_impl/init.luau +319 -0
- package/runtime/EzVisualz/_impl/wally.lock +8 -0
- package/runtime/EzVisualz/_impl/wally.toml +8 -0
- package/runtime/EzVisualz/init.luau +9 -0
- package/runtime/EzVisualz/wally.lock +8 -0
- package/runtime/EzVisualz/wally.toml +8 -0
- package/runtime/FormatNumber/LICENSE.md +25 -0
- package/runtime/FormatNumber/Main/DecimalFormatSymbols.lua +43 -0
- package/runtime/FormatNumber/Main/IntegerWidth.lua +41 -0
- package/runtime/FormatNumber/Main/Notation.lua +116 -0
- package/runtime/FormatNumber/Main/Precision.lua +179 -0
- package/runtime/FormatNumber/Main/init.lua +199 -0
- package/runtime/FormatNumber/Simple/init.lua +76 -0
- package/runtime/FormatNumber/Version.lua +82 -0
- package/runtime/FormatNumber/_impl/LICENSE.md +25 -0
- package/runtime/FormatNumber/_impl/Main/DecimalFormatSymbols.lua +43 -0
- package/runtime/FormatNumber/_impl/Main/IntegerWidth.lua +41 -0
- package/runtime/FormatNumber/_impl/Main/Notation.lua +116 -0
- package/runtime/FormatNumber/_impl/Main/Precision.lua +179 -0
- package/runtime/FormatNumber/_impl/Main/init.lua +199 -0
- package/runtime/FormatNumber/_impl/Simple/init.lua +76 -0
- package/runtime/FormatNumber/_impl/Version.lua +82 -0
- package/runtime/FormatNumber/_impl/_internal/class.lua +204 -0
- package/runtime/FormatNumber/_impl/_internal/decimal_conversion.lua +30 -0
- package/runtime/FormatNumber/_impl/_internal/enums.lua +55 -0
- package/runtime/FormatNumber/_impl/_internal/format.lua +342 -0
- package/runtime/FormatNumber/_impl/_internal/formatter_settings.lua +160 -0
- package/runtime/FormatNumber/_impl/_internal/init.lua +8 -0
- package/runtime/FormatNumber/_impl/_internal/skeleton.lua +541 -0
- package/runtime/FormatNumber/_impl/init.lua +20 -0
- package/runtime/FormatNumber/_internal/class.lua +204 -0
- package/runtime/FormatNumber/_internal/decimal_conversion.lua +30 -0
- package/runtime/FormatNumber/_internal/enums.lua +55 -0
- package/runtime/FormatNumber/_internal/format.lua +342 -0
- package/runtime/FormatNumber/_internal/formatter_settings.lua +160 -0
- package/runtime/FormatNumber/_internal/init.lua +8 -0
- package/runtime/FormatNumber/_internal/skeleton.lua +541 -0
- package/runtime/FormatNumber/init.lua +20 -0
- package/runtime/FormatNumber/init.luau +20 -0
- package/runtime/Fusion/Animation/ExternalTime.luau +84 -0
- package/runtime/Fusion/Animation/Spring.luau +313 -0
- package/runtime/Fusion/Animation/Stopwatch.luau +128 -0
- package/runtime/Fusion/Animation/Tween.luau +178 -0
- package/runtime/Fusion/Animation/getTweenDuration.luau +27 -0
- package/runtime/Fusion/Animation/getTweenRatio.luau +47 -0
- package/runtime/Fusion/Animation/lerpType.luau +164 -0
- package/runtime/Fusion/Animation/packType.luau +100 -0
- package/runtime/Fusion/Animation/springCoefficients.luau +80 -0
- package/runtime/Fusion/Animation/unpackType.luau +103 -0
- package/runtime/Fusion/Colour/Oklab.luau +70 -0
- package/runtime/Fusion/Colour/sRGB.luau +47 -0
- package/runtime/Fusion/External.luau +156 -0
- package/runtime/Fusion/ExternalDebug.luau +70 -0
- package/runtime/Fusion/Graph/Observer.luau +111 -0
- package/runtime/Fusion/Graph/castToGraph.luau +29 -0
- package/runtime/Fusion/Graph/change.luau +81 -0
- package/runtime/Fusion/Graph/depend.luau +33 -0
- package/runtime/Fusion/Graph/evaluate.luau +56 -0
- package/runtime/Fusion/Instances/Attribute.luau +58 -0
- package/runtime/Fusion/Instances/AttributeChange.luau +47 -0
- package/runtime/Fusion/Instances/AttributeOut.luau +63 -0
- package/runtime/Fusion/Instances/Child.luau +21 -0
- package/runtime/Fusion/Instances/Children.luau +148 -0
- package/runtime/Fusion/Instances/Hydrate.luau +29 -0
- package/runtime/Fusion/Instances/New.luau +48 -0
- package/runtime/Fusion/Instances/OnChange.luau +50 -0
- package/runtime/Fusion/Instances/OnEvent.luau +54 -0
- package/runtime/Fusion/Instances/Out.luau +69 -0
- package/runtime/Fusion/Instances/Tag.luau +61 -0
- package/runtime/Fusion/Instances/applyInstanceProps.luau +149 -0
- package/runtime/Fusion/Instances/defaultProps.luau +194 -0
- package/runtime/Fusion/LICENSE +21 -0
- package/runtime/Fusion/Logging/formatError.luau +49 -0
- package/runtime/Fusion/Logging/messages.luau +46 -0
- package/runtime/Fusion/Logging/parseError.luau +25 -0
- package/runtime/Fusion/Memory/checkLifetime.luau +134 -0
- package/runtime/Fusion/Memory/deriveScope.luau +24 -0
- package/runtime/Fusion/Memory/deriveScopeImpl.luau +40 -0
- package/runtime/Fusion/Memory/doCleanup.luau +91 -0
- package/runtime/Fusion/Memory/innerScope.luau +34 -0
- package/runtime/Fusion/Memory/insert.luau +22 -0
- package/runtime/Fusion/Memory/needsDestruction.luau +17 -0
- package/runtime/Fusion/Memory/scoped.luau +24 -0
- package/runtime/Fusion/RobloxExternal.luau +98 -0
- package/runtime/Fusion/State/Computed.luau +122 -0
- package/runtime/Fusion/State/For/Disassembly.luau +207 -0
- package/runtime/Fusion/State/For/ForTypes.luau +30 -0
- package/runtime/Fusion/State/For/init.luau +101 -0
- package/runtime/Fusion/State/ForKeys.luau +88 -0
- package/runtime/Fusion/State/ForPairs.luau +91 -0
- package/runtime/Fusion/State/ForValues.luau +88 -0
- package/runtime/Fusion/State/Value.luau +76 -0
- package/runtime/Fusion/State/castToState.luau +26 -0
- package/runtime/Fusion/State/peek.luau +31 -0
- package/runtime/Fusion/State/updateAll.luau +1 -0
- package/runtime/Fusion/Types.luau +318 -0
- package/runtime/Fusion/Utility/Contextual.luau +91 -0
- package/runtime/Fusion/Utility/Safe.luau +23 -0
- package/runtime/Fusion/Utility/isSimilar.luau +29 -0
- package/runtime/Fusion/Utility/merge.luau +35 -0
- package/runtime/Fusion/Utility/nameOf.luau +35 -0
- package/runtime/Fusion/Utility/never.luau +14 -0
- package/runtime/Fusion/Utility/nicknames.luau +11 -0
- package/runtime/Fusion/Utility/xtypeof.luau +27 -0
- package/runtime/Fusion/_impl/Animation/ExternalTime.luau +84 -0
- package/runtime/Fusion/_impl/Animation/Spring.luau +313 -0
- package/runtime/Fusion/_impl/Animation/Stopwatch.luau +128 -0
- package/runtime/Fusion/_impl/Animation/Tween.luau +178 -0
- package/runtime/Fusion/_impl/Animation/getTweenDuration.luau +27 -0
- package/runtime/Fusion/_impl/Animation/getTweenRatio.luau +47 -0
- package/runtime/Fusion/_impl/Animation/lerpType.luau +164 -0
- package/runtime/Fusion/_impl/Animation/packType.luau +100 -0
- package/runtime/Fusion/_impl/Animation/springCoefficients.luau +80 -0
- package/runtime/Fusion/_impl/Animation/unpackType.luau +103 -0
- package/runtime/Fusion/_impl/Colour/Oklab.luau +70 -0
- package/runtime/Fusion/_impl/Colour/sRGB.luau +47 -0
- package/runtime/Fusion/_impl/External.luau +156 -0
- package/runtime/Fusion/_impl/ExternalDebug.luau +70 -0
- package/runtime/Fusion/_impl/Graph/Observer.luau +111 -0
- package/runtime/Fusion/_impl/Graph/castToGraph.luau +29 -0
- package/runtime/Fusion/_impl/Graph/change.luau +81 -0
- package/runtime/Fusion/_impl/Graph/depend.luau +33 -0
- package/runtime/Fusion/_impl/Graph/evaluate.luau +56 -0
- package/runtime/Fusion/_impl/Instances/Attribute.luau +58 -0
- package/runtime/Fusion/_impl/Instances/AttributeChange.luau +47 -0
- package/runtime/Fusion/_impl/Instances/AttributeOut.luau +63 -0
- package/runtime/Fusion/_impl/Instances/Child.luau +21 -0
- package/runtime/Fusion/_impl/Instances/Children.luau +148 -0
- package/runtime/Fusion/_impl/Instances/Hydrate.luau +29 -0
- package/runtime/Fusion/_impl/Instances/New.luau +48 -0
- package/runtime/Fusion/_impl/Instances/OnChange.luau +50 -0
- package/runtime/Fusion/_impl/Instances/OnEvent.luau +54 -0
- package/runtime/Fusion/_impl/Instances/Out.luau +69 -0
- package/runtime/Fusion/_impl/Instances/Tag.luau +61 -0
- package/runtime/Fusion/_impl/Instances/applyInstanceProps.luau +149 -0
- package/runtime/Fusion/_impl/Instances/defaultProps.luau +194 -0
- package/runtime/Fusion/_impl/LICENSE +21 -0
- package/runtime/Fusion/_impl/Logging/formatError.luau +49 -0
- package/runtime/Fusion/_impl/Logging/messages.luau +46 -0
- package/runtime/Fusion/_impl/Logging/parseError.luau +25 -0
- package/runtime/Fusion/_impl/Memory/checkLifetime.luau +134 -0
- package/runtime/Fusion/_impl/Memory/deriveScope.luau +24 -0
- package/runtime/Fusion/_impl/Memory/deriveScopeImpl.luau +40 -0
- package/runtime/Fusion/_impl/Memory/doCleanup.luau +91 -0
- package/runtime/Fusion/_impl/Memory/innerScope.luau +34 -0
- package/runtime/Fusion/_impl/Memory/insert.luau +22 -0
- package/runtime/Fusion/_impl/Memory/needsDestruction.luau +17 -0
- package/runtime/Fusion/_impl/Memory/scoped.luau +24 -0
- package/runtime/Fusion/_impl/RobloxExternal.luau +98 -0
- package/runtime/Fusion/_impl/State/Computed.luau +122 -0
- package/runtime/Fusion/_impl/State/For/Disassembly.luau +207 -0
- package/runtime/Fusion/_impl/State/For/ForTypes.luau +30 -0
- package/runtime/Fusion/_impl/State/For/init.luau +101 -0
- package/runtime/Fusion/_impl/State/ForKeys.luau +88 -0
- package/runtime/Fusion/_impl/State/ForPairs.luau +91 -0
- package/runtime/Fusion/_impl/State/ForValues.luau +88 -0
- package/runtime/Fusion/_impl/State/Value.luau +76 -0
- package/runtime/Fusion/_impl/State/castToState.luau +26 -0
- package/runtime/Fusion/_impl/State/peek.luau +31 -0
- package/runtime/Fusion/_impl/State/updateAll.luau +1 -0
- package/runtime/Fusion/_impl/Types.luau +318 -0
- package/runtime/Fusion/_impl/Utility/Contextual.luau +91 -0
- package/runtime/Fusion/_impl/Utility/Safe.luau +23 -0
- package/runtime/Fusion/_impl/Utility/isSimilar.luau +29 -0
- package/runtime/Fusion/_impl/Utility/merge.luau +35 -0
- package/runtime/Fusion/_impl/Utility/nameOf.luau +35 -0
- package/runtime/Fusion/_impl/Utility/never.luau +14 -0
- package/runtime/Fusion/_impl/Utility/nicknames.luau +11 -0
- package/runtime/Fusion/_impl/Utility/xtypeof.luau +27 -0
- package/runtime/Fusion/_impl/init.luau +83 -0
- package/runtime/Fusion/init.luau +27 -0
- package/runtime/Iris/API.lua +2085 -0
- package/runtime/Iris/Internal.lua +895 -0
- package/runtime/Iris/LICENSE.txt +21 -0
- package/runtime/Iris/PubTypes.lua +43 -0
- package/runtime/Iris/Types.lua +660 -0
- package/runtime/Iris/WidgetTypes.lua +521 -0
- package/runtime/Iris/_impl/API.lua +2085 -0
- package/runtime/Iris/_impl/Internal.lua +895 -0
- package/runtime/Iris/_impl/LICENSE.txt +21 -0
- package/runtime/Iris/_impl/PubTypes.lua +43 -0
- package/runtime/Iris/_impl/Types.lua +660 -0
- package/runtime/Iris/_impl/WidgetTypes.lua +521 -0
- package/runtime/Iris/_impl/config.lua +305 -0
- package/runtime/Iris/_impl/init.lua +696 -0
- package/runtime/Iris/_impl/widgets/Button.lua +90 -0
- package/runtime/Iris/_impl/widgets/Checkbox.lua +115 -0
- package/runtime/Iris/_impl/widgets/Combo.lua +492 -0
- package/runtime/Iris/_impl/widgets/Format.lua +140 -0
- package/runtime/Iris/_impl/widgets/Image.lua +155 -0
- package/runtime/Iris/_impl/widgets/Input.lua +1232 -0
- package/runtime/Iris/_impl/widgets/Menu.lua +599 -0
- package/runtime/Iris/_impl/widgets/Plot.lua +639 -0
- package/runtime/Iris/_impl/widgets/RadioButton.lua +126 -0
- package/runtime/Iris/_impl/widgets/Root.lua +143 -0
- package/runtime/Iris/_impl/widgets/Tab.lua +333 -0
- package/runtime/Iris/_impl/widgets/Table.lua +635 -0
- package/runtime/Iris/_impl/widgets/Text.lua +132 -0
- package/runtime/Iris/_impl/widgets/Tree.lua +287 -0
- package/runtime/Iris/_impl/widgets/Window.lua +1075 -0
- package/runtime/Iris/_impl/widgets/init.lua +447 -0
- package/runtime/Iris/config.lua +305 -0
- package/runtime/Iris/init.lua +696 -0
- package/runtime/Iris/init.luau +12 -0
- package/runtime/Iris/widgets/Button.lua +90 -0
- package/runtime/Iris/widgets/Checkbox.lua +115 -0
- package/runtime/Iris/widgets/Combo.lua +492 -0
- package/runtime/Iris/widgets/Format.lua +140 -0
- package/runtime/Iris/widgets/Image.lua +155 -0
- package/runtime/Iris/widgets/Input.lua +1232 -0
- package/runtime/Iris/widgets/Menu.lua +599 -0
- package/runtime/Iris/widgets/Plot.lua +639 -0
- package/runtime/Iris/widgets/RadioButton.lua +126 -0
- package/runtime/Iris/widgets/Root.lua +143 -0
- package/runtime/Iris/widgets/Tab.lua +333 -0
- package/runtime/Iris/widgets/Table.lua +635 -0
- package/runtime/Iris/widgets/Text.lua +132 -0
- package/runtime/Iris/widgets/Tree.lua +287 -0
- package/runtime/Iris/widgets/Window.lua +1075 -0
- package/runtime/Iris/widgets/init.lua +447 -0
- package/runtime/Janitor/FastDefer.luau +33 -0
- package/runtime/Janitor/LICENSE +21 -0
- package/runtime/Janitor/_impl/FastDefer.luau +33 -0
- package/runtime/Janitor/_impl/LICENSE +21 -0
- package/runtime/Janitor/_impl/init.luau +999 -0
- package/runtime/Janitor/init.luau +45 -0
- package/runtime/MathUtils/init.luau +100 -0
- package/runtime/Module3D/LICENSE +21 -0
- package/runtime/Module3D/_impl/LICENSE +21 -0
- package/runtime/Module3D/_impl/init.luau +269 -0
- package/runtime/Module3D/init.luau +14 -0
- package/runtime/Net/init.luau +125 -0
- package/runtime/Net/src/codec.luau +153 -0
- package/runtime/Occlude/init.luau +54 -0
- package/runtime/Promise/LICENSE +21 -0
- package/runtime/Promise/_impl/LICENSE +21 -0
- package/runtime/Promise/_impl/init.lua +1991 -0
- package/runtime/Promise/init.lua +1990 -0
- package/runtime/Promise/init.luau +13 -0
- package/runtime/Promise/types.luau +46 -0
- package/runtime/SOURCES.md +22 -0
- package/runtime/Spring/LICENSE +201 -0
- package/runtime/Spring/_impl/LICENSE +201 -0
- package/runtime/Spring/_impl/init.luau +111 -0
- package/runtime/Spring/init.luau +24 -0
- package/runtime/StateMachine/Classes/State.lua +375 -0
- package/runtime/StateMachine/Classes/Transition.lua +336 -0
- package/runtime/StateMachine/Functions/deepCopy.lua +19 -0
- package/runtime/StateMachine/Functions/mergeTables.lua +22 -0
- package/runtime/StateMachine/LICENSE +19 -0
- package/runtime/StateMachine/Vendor/Signal.lua +386 -0
- package/runtime/StateMachine/Vendor/Trove.lua +188 -0
- package/runtime/StateMachine/_impl/Classes/State.lua +375 -0
- package/runtime/StateMachine/_impl/Classes/Transition.lua +336 -0
- package/runtime/StateMachine/_impl/Functions/deepCopy.lua +19 -0
- package/runtime/StateMachine/_impl/Functions/mergeTables.lua +22 -0
- package/runtime/StateMachine/_impl/LICENSE +19 -0
- package/runtime/StateMachine/_impl/Vendor/Signal.lua +386 -0
- package/runtime/StateMachine/_impl/Vendor/Trove.lua +188 -0
- package/runtime/StateMachine/_impl/init.lua +595 -0
- package/runtime/StateMachine/init.lua +595 -0
- package/runtime/StateMachine/init.luau +10 -0
- package/runtime/StickyBillboard/init.luau +167 -0
- package/runtime/TopbarPlus/Attribute.lua +35 -0
- package/runtime/TopbarPlus/Elements/Caption.lua +316 -0
- package/runtime/TopbarPlus/Elements/Container.lua +215 -0
- package/runtime/TopbarPlus/Elements/Dropdown.lua +315 -0
- package/runtime/TopbarPlus/Elements/Indicator.lua +91 -0
- package/runtime/TopbarPlus/Elements/Menu.lua +180 -0
- package/runtime/TopbarPlus/Elements/Notice.lua +113 -0
- package/runtime/TopbarPlus/Elements/Selection.lua +49 -0
- package/runtime/TopbarPlus/Elements/Widget.lua +437 -0
- package/runtime/TopbarPlus/Features/Gamepad.lua +201 -0
- package/runtime/TopbarPlus/Features/Overflow.lua +360 -0
- package/runtime/TopbarPlus/Features/Themes/Classic.lua +27 -0
- package/runtime/TopbarPlus/Features/Themes/Default.lua +75 -0
- package/runtime/TopbarPlus/Features/Themes/init.lua +353 -0
- package/runtime/TopbarPlus/LICENSE +381 -0
- package/runtime/TopbarPlus/Packages/GoodSignal.lua +182 -0
- package/runtime/TopbarPlus/Packages/Janitor.lua +322 -0
- package/runtime/TopbarPlus/Reference.lua +30 -0
- package/runtime/TopbarPlus/Types.lua +477 -0
- package/runtime/TopbarPlus/Utility.lua +462 -0
- package/runtime/TopbarPlus/VERSION.lua +51 -0
- package/runtime/TopbarPlus/_impl/Attribute.lua +35 -0
- package/runtime/TopbarPlus/_impl/Elements/Caption.lua +316 -0
- package/runtime/TopbarPlus/_impl/Elements/Container.lua +215 -0
- package/runtime/TopbarPlus/_impl/Elements/Dropdown.lua +315 -0
- package/runtime/TopbarPlus/_impl/Elements/Indicator.lua +91 -0
- package/runtime/TopbarPlus/_impl/Elements/Menu.lua +180 -0
- package/runtime/TopbarPlus/_impl/Elements/Notice.lua +113 -0
- package/runtime/TopbarPlus/_impl/Elements/Selection.lua +49 -0
- package/runtime/TopbarPlus/_impl/Elements/Widget.lua +437 -0
- package/runtime/TopbarPlus/_impl/Features/Gamepad.lua +201 -0
- package/runtime/TopbarPlus/_impl/Features/Overflow.lua +360 -0
- package/runtime/TopbarPlus/_impl/Features/Themes/Classic.lua +27 -0
- package/runtime/TopbarPlus/_impl/Features/Themes/Default.lua +75 -0
- package/runtime/TopbarPlus/_impl/Features/Themes/init.lua +353 -0
- package/runtime/TopbarPlus/_impl/LICENSE +381 -0
- package/runtime/TopbarPlus/_impl/Packages/GoodSignal.lua +182 -0
- package/runtime/TopbarPlus/_impl/Packages/Janitor.lua +322 -0
- package/runtime/TopbarPlus/_impl/Reference.lua +30 -0
- package/runtime/TopbarPlus/_impl/Types.lua +477 -0
- package/runtime/TopbarPlus/_impl/Utility.lua +462 -0
- package/runtime/TopbarPlus/_impl/VERSION.lua +51 -0
- package/runtime/TopbarPlus/_impl/init.lua +1249 -0
- package/runtime/TopbarPlus/init.lua +1249 -0
- package/runtime/TopbarPlus/init.luau +8 -0
- package/runtime/Twinkle/init.luau +157 -0
- package/runtime/VfxUtil/init.luau +164 -0
- package/src/api.generated.js +3675 -0
- package/src/api.js +57 -0
- package/src/architecture.js +393 -0
- package/src/cli.js +192 -0
- package/src/compile.js +40 -0
- package/src/emit.js +213 -0
- package/src/lex.js +149 -0
- package/src/libs.js +355 -0
- package/src/parse.js +421 -0
- package/src/preprocess.js +80 -0
- package/src/understand.js +453 -0
- package/templates/game/.clangd +5 -0
- package/templates/game/.vscode/c_cpp_properties.json +23 -0
- package/templates/game/.vscode/settings.json +12 -0
- package/templates/game/Packages/.gitkeep +0 -0
- package/templates/game/cluaupp.config.json +6 -0
- package/templates/game/compile_flags.txt +3 -0
- package/templates/game/default.project.json +39 -0
- package/templates/game/package.json +9 -0
- package/templates/game/src/client/init.client.cpp +5 -0
- package/templates/game/src/server/leaderstats.server.cpp +28 -0
- package/templates/game/src/shared/config.cpp +5 -0
- package/templates/game/src/shared/config.h +3 -0
- package/templates/game/wally.toml +11 -0
package/src/api.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const generated = require("./api.generated");
|
|
4
|
+
|
|
5
|
+
const INSTANCE_TYPES = new Set(generated.INSTANCE_TYPES);
|
|
6
|
+
const SERVICES = new Set(generated.SERVICES);
|
|
7
|
+
const METHODS = new Set(generated.METHODS);
|
|
8
|
+
const DATATYPES = new Set(generated.DATATYPES);
|
|
9
|
+
|
|
10
|
+
const LUAU_TYPES = {
|
|
11
|
+
void: "()",
|
|
12
|
+
int: "number",
|
|
13
|
+
float: "number",
|
|
14
|
+
double: "number",
|
|
15
|
+
bool: "boolean",
|
|
16
|
+
string: "string",
|
|
17
|
+
auto: null,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
function isInstanceType(name) {
|
|
21
|
+
return INSTANCE_TYPES.has(name);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function isService(name) {
|
|
25
|
+
return SERVICES.has(name);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function isMethod(name) {
|
|
29
|
+
return METHODS.has(name);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function isDatatype(name) {
|
|
33
|
+
return DATATYPES.has(name);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function luauType(name) {
|
|
37
|
+
if (!name) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const cleaned = String(name).replace(/\*+$/, "").replace(/^const\s+/, "").replace(/^Enum::/, "Enum.");
|
|
41
|
+
if (cleaned in LUAU_TYPES) {
|
|
42
|
+
return LUAU_TYPES[cleaned];
|
|
43
|
+
}
|
|
44
|
+
return cleaned;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports = {
|
|
48
|
+
INSTANCE_TYPES,
|
|
49
|
+
SERVICES,
|
|
50
|
+
METHODS,
|
|
51
|
+
DATATYPES,
|
|
52
|
+
isInstanceType,
|
|
53
|
+
isService,
|
|
54
|
+
isMethod,
|
|
55
|
+
isDatatype,
|
|
56
|
+
luauType,
|
|
57
|
+
};
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const { emit } = require("./emit");
|
|
5
|
+
const { collectLibraries, insertRequires, requireCluauppLib } = require("./libs");
|
|
6
|
+
const {
|
|
7
|
+
VALUE_CLASSES,
|
|
8
|
+
analyze,
|
|
9
|
+
toPascalServiceName,
|
|
10
|
+
legacyOutName,
|
|
11
|
+
} = require("./understand");
|
|
12
|
+
|
|
13
|
+
function header(plan) {
|
|
14
|
+
const lines = ["--!strict", "-- Compiled by Cluaupp — C++ × Luau"];
|
|
15
|
+
if (plan && plan.reasoning) {
|
|
16
|
+
for (const line of plan.reasoning) {
|
|
17
|
+
lines.push(`-- ${line}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
lines.push("");
|
|
21
|
+
return lines.join("\n");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function cluauppLib(name) {
|
|
25
|
+
return requireCluauppLib(name);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function emitTypes(plan) {
|
|
29
|
+
const lines = [header(plan).trimEnd(), ""];
|
|
30
|
+
lines.push('local ReplicatedStorage = game:GetService("ReplicatedStorage")');
|
|
31
|
+
lines.push(`local Occlude = ${cluauppLib("Occlude")}`);
|
|
32
|
+
lines.push(`local ArrayIndexer = ${cluauppLib("ArrayIndexer")}`);
|
|
33
|
+
lines.push("");
|
|
34
|
+
|
|
35
|
+
if (plan.stats.length > 0) {
|
|
36
|
+
const union = plan.stats.map((stat) => `"${stat.name}"`).join(" | ");
|
|
37
|
+
lines.push(`export type StatName = ${union}`);
|
|
38
|
+
lines.push("");
|
|
39
|
+
lines.push(`export type ${plan.serviceName}Data = {`);
|
|
40
|
+
for (const stat of plan.stats) {
|
|
41
|
+
lines.push(` ${stat.name}: ${stat.luau},`);
|
|
42
|
+
}
|
|
43
|
+
lines.push("}");
|
|
44
|
+
lines.push("");
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (plan.roles.cache) {
|
|
48
|
+
lines.push("export type PlayerCache = {");
|
|
49
|
+
lines.push(" Folder: Folder,");
|
|
50
|
+
for (const stat of plan.stats) {
|
|
51
|
+
lines.push(` ${stat.name}: ${stat.instance},`);
|
|
52
|
+
}
|
|
53
|
+
lines.push("}");
|
|
54
|
+
lines.push("");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const manifest = [];
|
|
58
|
+
if (plan.roles.cache) {
|
|
59
|
+
manifest.push(" CacheController: {");
|
|
60
|
+
manifest.push(" Get: (player: Player) -> PlayerCache?,");
|
|
61
|
+
manifest.push(" Ensure: (player: Player) -> PlayerCache,");
|
|
62
|
+
manifest.push(" Clear: (player: Player) -> (),");
|
|
63
|
+
manifest.push(" },");
|
|
64
|
+
}
|
|
65
|
+
if (plan.roles.players) {
|
|
66
|
+
manifest.push(" PlayersManager: {");
|
|
67
|
+
manifest.push(" Start: (onPlayer: (player: Player) -> (), onLeave: ((player: Player) -> ())?) -> (),");
|
|
68
|
+
manifest.push(" Stop: () -> (),");
|
|
69
|
+
manifest.push(" },");
|
|
70
|
+
}
|
|
71
|
+
if (plan.roles.domain) {
|
|
72
|
+
manifest.push(` ${plan.roles.domain}: {`);
|
|
73
|
+
manifest.push(" Start: () -> (),");
|
|
74
|
+
manifest.push(" Stop: () -> (),");
|
|
75
|
+
manifest.push(" },");
|
|
76
|
+
}
|
|
77
|
+
lines.push("export type ServiceManifest = {");
|
|
78
|
+
if (manifest.length === 0) {
|
|
79
|
+
lines.push(" Main: { Start: () -> (), Stop: () -> () },");
|
|
80
|
+
} else {
|
|
81
|
+
lines.push(...manifest);
|
|
82
|
+
}
|
|
83
|
+
lines.push("}");
|
|
84
|
+
lines.push("");
|
|
85
|
+
if (plan.roles.cache) {
|
|
86
|
+
lines.push('export type CacheService = ArrayIndexer.Table<ServiceManifest, "CacheController">');
|
|
87
|
+
} else if (plan.roles.domain) {
|
|
88
|
+
lines.push(`export type DomainService = ArrayIndexer.Table<ServiceManifest, "${plan.roles.domain}">`);
|
|
89
|
+
} else {
|
|
90
|
+
lines.push('export type MainService = ArrayIndexer.Table<ServiceManifest, "Main">');
|
|
91
|
+
}
|
|
92
|
+
if (plan.stats.length > 1) {
|
|
93
|
+
const hide = plan.stats[plan.stats.length - 1].name;
|
|
94
|
+
lines.push(`export type HudData = Occlude.Keys<${plan.serviceName}Data, "${hide}">`);
|
|
95
|
+
}
|
|
96
|
+
lines.push("");
|
|
97
|
+
lines.push("return {}");
|
|
98
|
+
lines.push("");
|
|
99
|
+
return lines.join("\n");
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function emitPlayersManager(plan) {
|
|
103
|
+
return `${header(plan)}
|
|
104
|
+
local Players = game:GetService("Players")
|
|
105
|
+
local ReplicatedStorage = game:GetService("ReplicatedStorage")
|
|
106
|
+
local Janitor = ${cluauppLib("Janitor")}
|
|
107
|
+
type Janitor = Janitor.Janitor
|
|
108
|
+
|
|
109
|
+
export type PlayerHandler = (player: Player) -> ()
|
|
110
|
+
|
|
111
|
+
local PlayersManager = {}
|
|
112
|
+
local lifetime: Janitor? = nil
|
|
113
|
+
|
|
114
|
+
function PlayersManager.Start(onPlayer: PlayerHandler, onLeave: PlayerHandler?)
|
|
115
|
+
PlayersManager.Stop()
|
|
116
|
+
local janitor = Janitor.new()
|
|
117
|
+
lifetime = janitor
|
|
118
|
+
|
|
119
|
+
local function accept(player: Player)
|
|
120
|
+
onPlayer(player)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
for _, player in Players:GetPlayers() do
|
|
124
|
+
accept(player)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
janitor:Add(Players.PlayerAdded:Connect(accept), "Disconnect", "PlayerAdded")
|
|
128
|
+
if onLeave then
|
|
129
|
+
janitor:Add(Players.PlayerRemoving:Connect(onLeave), "Disconnect", "PlayerRemoving")
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
function PlayersManager.Stop()
|
|
134
|
+
if lifetime == nil then
|
|
135
|
+
return
|
|
136
|
+
end
|
|
137
|
+
lifetime:Cleanup()
|
|
138
|
+
lifetime = nil
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
return PlayersManager
|
|
142
|
+
`;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function emitCacheController(plan) {
|
|
146
|
+
const types = plan.typesName;
|
|
147
|
+
const folder = plan.folderName || "leaderstats";
|
|
148
|
+
const lines = [header(plan).trimEnd(), ""];
|
|
149
|
+
lines.push(`local Types = require(script.Parent.${types})`);
|
|
150
|
+
lines.push("");
|
|
151
|
+
lines.push(`local FOLDER_NAME = "${folder}"`);
|
|
152
|
+
lines.push("local cache: { [Player]: Types.PlayerCache } = {}");
|
|
153
|
+
lines.push("");
|
|
154
|
+
lines.push("local CacheController = {}");
|
|
155
|
+
lines.push("");
|
|
156
|
+
lines.push("function CacheController.Get(player: Player): Types.PlayerCache?");
|
|
157
|
+
lines.push(" return cache[player]");
|
|
158
|
+
lines.push("end");
|
|
159
|
+
lines.push("");
|
|
160
|
+
lines.push("function CacheController.Ensure(player: Player): Types.PlayerCache");
|
|
161
|
+
lines.push(" local existing = cache[player]");
|
|
162
|
+
lines.push(" if existing then");
|
|
163
|
+
lines.push(" return existing");
|
|
164
|
+
lines.push(" end");
|
|
165
|
+
lines.push("");
|
|
166
|
+
lines.push(" local folderInstance = player:FindFirstChild(FOLDER_NAME)");
|
|
167
|
+
lines.push(" local folder: Folder");
|
|
168
|
+
lines.push(' if folderInstance and folderInstance:IsA("Folder") then');
|
|
169
|
+
lines.push(" folder = folderInstance");
|
|
170
|
+
lines.push(" else");
|
|
171
|
+
lines.push(' folder = Instance.new("Folder")');
|
|
172
|
+
lines.push(" folder.Name = FOLDER_NAME");
|
|
173
|
+
lines.push(" folder.Parent = player");
|
|
174
|
+
lines.push(" end");
|
|
175
|
+
lines.push("");
|
|
176
|
+
for (const stat of plan.stats) {
|
|
177
|
+
const ident = stat.name;
|
|
178
|
+
lines.push(` local existing${ident} = folder:FindFirstChild("${stat.name}")`);
|
|
179
|
+
lines.push(` local ${ident}: ${stat.instance}`);
|
|
180
|
+
lines.push(` if existing${ident} and existing${ident}:IsA("${stat.instance}") then`);
|
|
181
|
+
lines.push(` ${ident} = existing${ident}`);
|
|
182
|
+
lines.push(" else");
|
|
183
|
+
lines.push(` ${ident} = Instance.new("${stat.instance}")`);
|
|
184
|
+
lines.push(` ${ident}.Name = "${stat.name}"`);
|
|
185
|
+
lines.push(` ${ident}.Value = ${stat.defaultValue}`);
|
|
186
|
+
lines.push(` ${ident}.Parent = folder`);
|
|
187
|
+
lines.push(" end");
|
|
188
|
+
lines.push("");
|
|
189
|
+
}
|
|
190
|
+
lines.push(" local record: Types.PlayerCache = {");
|
|
191
|
+
lines.push(" Folder = folder,");
|
|
192
|
+
for (const stat of plan.stats) {
|
|
193
|
+
lines.push(` ${stat.name} = ${stat.name},`);
|
|
194
|
+
}
|
|
195
|
+
lines.push(" }");
|
|
196
|
+
lines.push(" cache[player] = record");
|
|
197
|
+
lines.push(" return record");
|
|
198
|
+
lines.push("end");
|
|
199
|
+
lines.push("");
|
|
200
|
+
lines.push("function CacheController.Clear(player: Player)");
|
|
201
|
+
lines.push(" cache[player] = nil");
|
|
202
|
+
lines.push("end");
|
|
203
|
+
lines.push("");
|
|
204
|
+
lines.push("return CacheController");
|
|
205
|
+
lines.push("");
|
|
206
|
+
return lines.join("\n");
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function emitMain(plan) {
|
|
210
|
+
const lines = [header(plan).trimEnd(), ""];
|
|
211
|
+
if (plan.roles.players) {
|
|
212
|
+
lines.push("local PlayersManager = require(script.Parent.PlayersManager)");
|
|
213
|
+
}
|
|
214
|
+
if (plan.roles.cache) {
|
|
215
|
+
lines.push("local CacheController = require(script.Parent.CacheController)");
|
|
216
|
+
}
|
|
217
|
+
if (plan.roles.domain) {
|
|
218
|
+
lines.push(`local ${plan.roles.domain} = require(script.Parent.${plan.roles.domain})`);
|
|
219
|
+
}
|
|
220
|
+
lines.push("");
|
|
221
|
+
lines.push("local Main = {}");
|
|
222
|
+
lines.push("");
|
|
223
|
+
lines.push("function Main.Start()");
|
|
224
|
+
if (plan.roles.players && plan.roles.cache) {
|
|
225
|
+
lines.push(" PlayersManager.Start(function(player: Player)");
|
|
226
|
+
lines.push(" CacheController.Ensure(player)");
|
|
227
|
+
lines.push(" end, function(player: Player)");
|
|
228
|
+
lines.push(" CacheController.Clear(player)");
|
|
229
|
+
lines.push(" end)");
|
|
230
|
+
} else if (plan.roles.players) {
|
|
231
|
+
lines.push(" PlayersManager.Start(function(_player: Player) end)");
|
|
232
|
+
}
|
|
233
|
+
if (plan.roles.domain) {
|
|
234
|
+
lines.push(` ${plan.roles.domain}.Start()`);
|
|
235
|
+
}
|
|
236
|
+
if (!plan.roles.players && !plan.roles.domain) {
|
|
237
|
+
lines.push(" return");
|
|
238
|
+
}
|
|
239
|
+
lines.push("end");
|
|
240
|
+
lines.push("");
|
|
241
|
+
lines.push("function Main.Stop()");
|
|
242
|
+
if (plan.roles.domain) {
|
|
243
|
+
lines.push(` ${plan.roles.domain}.Stop()`);
|
|
244
|
+
}
|
|
245
|
+
if (plan.roles.players) {
|
|
246
|
+
lines.push(" PlayersManager.Stop()");
|
|
247
|
+
}
|
|
248
|
+
lines.push("end");
|
|
249
|
+
lines.push("");
|
|
250
|
+
lines.push("return Main");
|
|
251
|
+
lines.push("");
|
|
252
|
+
return lines.join("\n");
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function emitBootstrap(plan) {
|
|
256
|
+
return `${header(plan)}require(script.Main):Start()
|
|
257
|
+
`;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function emitConfig(plan, ast, options) {
|
|
261
|
+
const lines = [];
|
|
262
|
+
if (plan.onlyConsts) {
|
|
263
|
+
lines.push(header(plan).trimEnd());
|
|
264
|
+
lines.push("");
|
|
265
|
+
for (const item of plan.consts) {
|
|
266
|
+
lines.push(`const ${item.name}: ${item.luau} = ${item.value}`);
|
|
267
|
+
}
|
|
268
|
+
} else {
|
|
269
|
+
lines.push(header(plan).trimEnd());
|
|
270
|
+
lines.push("");
|
|
271
|
+
lines.push(emit(ast, { ...options, skipHeader: true, skipInit: true }).trimEnd());
|
|
272
|
+
}
|
|
273
|
+
lines.push("");
|
|
274
|
+
lines.push("return {");
|
|
275
|
+
for (const item of plan.consts) {
|
|
276
|
+
lines.push(` ${item.name} = ${item.name},`);
|
|
277
|
+
}
|
|
278
|
+
for (const decl of ast.body || []) {
|
|
279
|
+
if (decl.type === "function" && decl.name !== "init") {
|
|
280
|
+
lines.push(` ${decl.name} = ${decl.name},`);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
if ((ast.body || []).some((decl) => decl.type === "function" && decl.name === "init")) {
|
|
284
|
+
lines.push(" Start = init,");
|
|
285
|
+
}
|
|
286
|
+
lines.push("}");
|
|
287
|
+
lines.push("");
|
|
288
|
+
return lines.join("\n");
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function emitDomainController(plan, ast, options) {
|
|
292
|
+
const absorbCache = plan.roles.cache;
|
|
293
|
+
const keep = (ast.body || []).filter((decl) => {
|
|
294
|
+
if (decl.type === "decl" || decl.type === "proto") {
|
|
295
|
+
return true;
|
|
296
|
+
}
|
|
297
|
+
if (decl.type !== "function") {
|
|
298
|
+
return false;
|
|
299
|
+
}
|
|
300
|
+
if (decl.name === "init") {
|
|
301
|
+
return true;
|
|
302
|
+
}
|
|
303
|
+
const classified = plan.functions.find((item) => item.name === decl.name);
|
|
304
|
+
if (absorbCache && classified && classified.absorb === "cache") {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
return true;
|
|
308
|
+
});
|
|
309
|
+
const subset = { type: "program", body: keep };
|
|
310
|
+
const code = emit(subset, { ...options, skipHeader: true, skipInit: true }).trimEnd();
|
|
311
|
+
const name = plan.roles.domain;
|
|
312
|
+
const libs = collectLibraries(options.source || "", subset);
|
|
313
|
+
const body = `${header(plan)}${code}
|
|
314
|
+
|
|
315
|
+
local ${name} = {}
|
|
316
|
+
|
|
317
|
+
function ${name}.Start()
|
|
318
|
+
${keep.some((decl) => decl.type === "function" && decl.name === "init") ? "init()" : "return"}
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
function ${name}.Stop()
|
|
322
|
+
return
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
return ${name}
|
|
326
|
+
`;
|
|
327
|
+
return insertRequires(body, libs);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
function emitModule(plan, ast, options) {
|
|
331
|
+
return emitConfig(plan, ast, options);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function serviceFiles(plan, ast, options, dir) {
|
|
335
|
+
const folder = `${dir}/${plan.serviceName}`;
|
|
336
|
+
const boot = plan.isClient ? "init.client.luau" : "init.server.luau";
|
|
337
|
+
const files = [{ name: `${folder}/${boot}`, contents: emitBootstrap(plan) }, { name: `${folder}/Main.luau`, contents: emitMain(plan) }];
|
|
338
|
+
if (plan.roles.players) {
|
|
339
|
+
files.push({ name: `${folder}/PlayersManager.luau`, contents: emitPlayersManager(plan) });
|
|
340
|
+
}
|
|
341
|
+
if (plan.roles.cache) {
|
|
342
|
+
files.push({ name: `${folder}/CacheController.luau`, contents: emitCacheController(plan) });
|
|
343
|
+
}
|
|
344
|
+
if (plan.roles.domain) {
|
|
345
|
+
files.push({ name: `${folder}/${plan.roles.domain}.luau`, contents: emitDomainController(plan, ast, options) });
|
|
346
|
+
}
|
|
347
|
+
files.push({ name: `${folder}/${plan.typesName}.luau`, contents: emitTypes(plan) });
|
|
348
|
+
return files;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
function planOutput(ast, fileName, options = {}) {
|
|
352
|
+
const plan = analyze(ast, fileName);
|
|
353
|
+
const rel = (options.relativeName || fileName).replace(/\\/g, "/");
|
|
354
|
+
const dir = path.dirname(rel).replace(/^\.$/, "");
|
|
355
|
+
const outDir = dir && dir !== "." ? dir : "";
|
|
356
|
+
const prefix = outDir ? `${outDir}/` : "";
|
|
357
|
+
|
|
358
|
+
if (options.architecture === false) {
|
|
359
|
+
return { kind: "flat", plan, files: null };
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (plan.kind === "legacy") {
|
|
363
|
+
return { kind: "legacy", plan, files: null, stale: [], outName: legacyOutName(rel) };
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (plan.kind === "service") {
|
|
367
|
+
const serviceDir = outDir || (plan.isClient ? "client" : "server");
|
|
368
|
+
return {
|
|
369
|
+
kind: "service",
|
|
370
|
+
plan,
|
|
371
|
+
files: serviceFiles(plan, ast, options, serviceDir),
|
|
372
|
+
stale: [rel.replace(/\.(cpp|cc|cxx|c|h|hpp|hh)$/i, ".luau")],
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (plan.kind === "config" || plan.kind === "module") {
|
|
377
|
+
return {
|
|
378
|
+
kind: plan.kind,
|
|
379
|
+
plan,
|
|
380
|
+
files: [{ name: `${prefix}${plan.serviceName}.luau`, contents: emitModule(plan, ast, options) }],
|
|
381
|
+
stale: [rel.replace(/\.(cpp|cc|cxx|c|h|hpp|hh)$/i, ".luau")],
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return { kind: "flat", plan, files: null, stale: [] };
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
module.exports = {
|
|
389
|
+
analyze,
|
|
390
|
+
planOutput,
|
|
391
|
+
toPascalServiceName,
|
|
392
|
+
VALUE_CLASSES,
|
|
393
|
+
};
|
package/src/cli.js
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const { compileService } = require("./compile");
|
|
6
|
+
const { isSourceFile, isHeaderFile, toLuauPath } = require("./preprocess");
|
|
7
|
+
const pkg = require("../package.json");
|
|
8
|
+
|
|
9
|
+
function printHelp() {
|
|
10
|
+
console.log(`Cluaupp ${pkg.version} — C++ × Luau
|
|
11
|
+
|
|
12
|
+
Usage:
|
|
13
|
+
cluaupp init [folder] create a game (src/server, src/client, src/shared)
|
|
14
|
+
cluaupp build [folder] transpile src → out (PascalCase services)
|
|
15
|
+
cluaupp watch [folder] rebuild on save
|
|
16
|
+
cluaupp --version print version
|
|
17
|
+
cluaupp --help this help
|
|
18
|
+
|
|
19
|
+
Flow: cluaupp init → cluaupp build → rojo serve (plugin in Roblox Studio)
|
|
20
|
+
Docs: https://github.com/kartzDev/cluaupp
|
|
21
|
+
`);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function copyDir(from, to) {
|
|
25
|
+
fs.mkdirSync(to, { recursive: true });
|
|
26
|
+
for (const entry of fs.readdirSync(from, { withFileTypes: true })) {
|
|
27
|
+
const src = path.join(from, entry.name);
|
|
28
|
+
const dest = path.join(to, entry.name);
|
|
29
|
+
if (entry.isDirectory()) {
|
|
30
|
+
copyDir(src, dest);
|
|
31
|
+
} else {
|
|
32
|
+
fs.copyFileSync(src, dest);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function copyRuntime(dest) {
|
|
38
|
+
const runtime = path.join(__dirname, "..", "runtime");
|
|
39
|
+
const libs = path.join(dest, "libs");
|
|
40
|
+
if (fs.existsSync(libs)) {
|
|
41
|
+
fs.rmSync(libs, { recursive: true, force: true });
|
|
42
|
+
}
|
|
43
|
+
if (fs.existsSync(runtime)) {
|
|
44
|
+
copyDir(runtime, libs);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function copyHeaders(dest) {
|
|
49
|
+
const from = path.join(__dirname, "..", "include", "cluaupp");
|
|
50
|
+
const to = path.join(dest, "include", "cluaupp");
|
|
51
|
+
if (!fs.existsSync(from)) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (fs.existsSync(to)) {
|
|
55
|
+
fs.rmSync(to, { recursive: true, force: true });
|
|
56
|
+
}
|
|
57
|
+
copyDir(from, to);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function loadConfig(root) {
|
|
61
|
+
const configNames = ["cluaupp.config.json", "cluau.config.json"];
|
|
62
|
+
for (const name of configNames) {
|
|
63
|
+
const file = path.join(root, name);
|
|
64
|
+
if (fs.existsSync(file)) {
|
|
65
|
+
return { rootDir: "src", outDir: "out", strict: true, ...JSON.parse(fs.readFileSync(file, "utf8")) };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return { rootDir: "src", outDir: "out", strict: true };
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function collectCpp(dir, files = []) {
|
|
72
|
+
if (!fs.existsSync(dir)) {
|
|
73
|
+
return files;
|
|
74
|
+
}
|
|
75
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
76
|
+
const full = path.join(dir, entry.name);
|
|
77
|
+
if (entry.isDirectory()) {
|
|
78
|
+
collectCpp(full, files);
|
|
79
|
+
} else if (isSourceFile(entry.name)) {
|
|
80
|
+
files.push(full);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return files;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function siblingCpp(file) {
|
|
87
|
+
return file.replace(/\.(h|hpp|hh)$/i, ".cpp");
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function resolveKey(file) {
|
|
91
|
+
const resolved = path.resolve(file);
|
|
92
|
+
return process.platform === "win32" ? resolved.toLowerCase() : resolved;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function build(root, options = {}) {
|
|
96
|
+
const exitOnError = options.exitOnError !== false;
|
|
97
|
+
const config = loadConfig(root);
|
|
98
|
+
copyRuntime(root);
|
|
99
|
+
copyHeaders(root);
|
|
100
|
+
const files = collectCpp(path.join(root, config.rootDir));
|
|
101
|
+
if (files.length === 0) {
|
|
102
|
+
console.error("no .cpp/.h/.hpp files in", config.rootDir);
|
|
103
|
+
if (exitOnError) {
|
|
104
|
+
process.exit(1);
|
|
105
|
+
}
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const fileSet = new Set(files.map((file) => path.resolve(file)));
|
|
110
|
+
let failed = 0;
|
|
111
|
+
const written = new Set();
|
|
112
|
+
for (const file of files) {
|
|
113
|
+
if (isHeaderFile(file) && fileSet.has(path.resolve(siblingCpp(file)))) {
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
const source = fs.readFileSync(file, "utf8");
|
|
117
|
+
const rel = path.relative(path.join(root, config.rootDir), file).replace(/\\/g, "/");
|
|
118
|
+
try {
|
|
119
|
+
const result = compileService(source, rel, {
|
|
120
|
+
...config,
|
|
121
|
+
filePath: file,
|
|
122
|
+
relativeName: rel,
|
|
123
|
+
outName: toLuauPath(rel),
|
|
124
|
+
architecture: config.architecture !== false,
|
|
125
|
+
includeDirs: [path.dirname(file), path.join(root, config.rootDir), path.join(root, "include")],
|
|
126
|
+
});
|
|
127
|
+
for (const artifact of result.files) {
|
|
128
|
+
const dest = path.join(root, config.outDir, artifact.name);
|
|
129
|
+
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
130
|
+
fs.writeFileSync(dest, artifact.contents, "utf8");
|
|
131
|
+
written.add(resolveKey(dest));
|
|
132
|
+
console.log("cluaupp:", rel, "→", path.relative(root, dest));
|
|
133
|
+
}
|
|
134
|
+
for (const stale of result.stale || []) {
|
|
135
|
+
const dest = path.join(root, config.outDir, stale);
|
|
136
|
+
if (fs.existsSync(dest) && !written.has(resolveKey(dest))) {
|
|
137
|
+
fs.unlinkSync(dest);
|
|
138
|
+
console.log("cluaupp: removed", path.relative(root, dest));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} catch (err) {
|
|
142
|
+
failed += 1;
|
|
143
|
+
console.error(err.message);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
if (failed > 0 && exitOnError) {
|
|
147
|
+
process.exit(1);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function init(dest) {
|
|
152
|
+
const template = path.join(__dirname, "..", "templates", "game");
|
|
153
|
+
const include = path.join(__dirname, "..", "include");
|
|
154
|
+
copyDir(template, dest);
|
|
155
|
+
copyDir(include, path.join(dest, "include"));
|
|
156
|
+
copyRuntime(dest);
|
|
157
|
+
console.log("Cluaupp ready in", dest);
|
|
158
|
+
console.log(" cluaupp build");
|
|
159
|
+
console.log(" rojo serve");
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function watch(root) {
|
|
163
|
+
build(root, { exitOnError: false });
|
|
164
|
+
const config = loadConfig(root);
|
|
165
|
+
const dir = path.join(root, config.rootDir);
|
|
166
|
+
console.log("watching", dir);
|
|
167
|
+
fs.watch(dir, { recursive: true }, (_event, filename) => {
|
|
168
|
+
if (filename && isSourceFile(filename)) {
|
|
169
|
+
try {
|
|
170
|
+
build(root, { exitOnError: false });
|
|
171
|
+
} catch (err) {
|
|
172
|
+
console.error(err.message);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const args = process.argv.slice(2);
|
|
179
|
+
const cmd = args[0] || "help";
|
|
180
|
+
const cwd = process.cwd();
|
|
181
|
+
|
|
182
|
+
if (cmd === "init") {
|
|
183
|
+
init(path.resolve(cwd, args[1] || "."));
|
|
184
|
+
} else if (cmd === "build") {
|
|
185
|
+
build(path.resolve(cwd, args[1] || "."));
|
|
186
|
+
} else if (cmd === "watch") {
|
|
187
|
+
watch(path.resolve(cwd, args[1] || "."));
|
|
188
|
+
} else if (cmd === "--version" || cmd === "-v" || cmd === "version") {
|
|
189
|
+
console.log(pkg.version);
|
|
190
|
+
} else {
|
|
191
|
+
printHelp();
|
|
192
|
+
}
|
package/src/compile.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const { parse } = require("./parse");
|
|
4
|
+
const { emit } = require("./emit");
|
|
5
|
+
const { preprocess } = require("./preprocess");
|
|
6
|
+
const { collectLibraries, insertRequires } = require("./libs");
|
|
7
|
+
const { planOutput } = require("./architecture");
|
|
8
|
+
|
|
9
|
+
function compileSource(source, fileName, options = {}) {
|
|
10
|
+
const prepared = options.filePath ? preprocess(source, options.filePath, options) : source;
|
|
11
|
+
const ast = parse(prepared, fileName || "input.cpp");
|
|
12
|
+
const luau = emit(ast, options);
|
|
13
|
+
return insertRequires(luau, collectLibraries(source, ast));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function compileService(source, fileName, options = {}) {
|
|
17
|
+
const prepared = options.filePath ? preprocess(source, options.filePath, options) : source;
|
|
18
|
+
const ast = parse(prepared, fileName || "input.cpp");
|
|
19
|
+
const planned = planOutput(ast, fileName || "input.cpp", {
|
|
20
|
+
...options,
|
|
21
|
+
relativeName: options.relativeName || fileName,
|
|
22
|
+
source: prepared,
|
|
23
|
+
});
|
|
24
|
+
if (planned.files) {
|
|
25
|
+
return planned;
|
|
26
|
+
}
|
|
27
|
+
const luau = insertRequires(emit(ast, options), collectLibraries(source, ast));
|
|
28
|
+
const name =
|
|
29
|
+
planned.outName ||
|
|
30
|
+
options.outName ||
|
|
31
|
+
String(fileName || "input.cpp").replace(/\.(cpp|cc|cxx|c|h|hpp|hh)$/i, ".luau");
|
|
32
|
+
return {
|
|
33
|
+
kind: planned.kind || "flat",
|
|
34
|
+
plan: planned.plan,
|
|
35
|
+
files: [{ name, contents: luau }],
|
|
36
|
+
stale: planned.stale || [],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
module.exports = { compileSource, compileService };
|