cluaupp 1.5.0 → 1.5.1
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 +47 -0
- package/README.md +10 -5
- package/api/CHANGELOG.md +3 -0
- package/api/chat.js +74 -0
- package/api/fixtures/roblox/README.md +6 -0
- package/api/fixtures/roblox/aux/sample.d.luau +6 -0
- package/api/fixtures/roblox/mini/Mini-API-Dump.json +72 -0
- package/api/generated/bench-latest.json +39 -0
- package/api/generated/capability-profile.json +76 -0
- package/api/generated/lsp-index.json +1 -0
- package/api/generated/luau/classes.d.luau +11221 -0
- package/api/generated/luau/datatypes.d.luau +327 -0
- package/api/generated/luau/enums.d.luau +4918 -0
- package/api/generated/luau/globals.d.luau +12 -0
- package/api/manifests/roblox-target.manifest.json +22 -0
- package/api/normalized/roblox-target.profile.json +237461 -0
- package/api/overrides/classes.json +8 -0
- package/api/overrides/compatibility.json +9 -0
- package/api/overrides/datatypes.json +1579 -0
- package/api/overrides/enums.json +8 -0
- package/api/overrides/globals.json +8 -0
- package/api/overrides/type-mappings.json +9 -0
- package/api/roblox-api.lock.json +9 -0
- package/data/Mini-API-Dump.json +1 -0
- package/editors/vscode/README.md +12 -10
- package/editors/vscode/extension.js +82 -0
- package/editors/vscode/icons/axiom.svg +4 -0
- package/editors/vscode/icons/bloom.svg +5 -0
- package/editors/vscode/icons/helm.svg +4 -0
- package/editors/vscode/icons/hive.svg +5 -0
- package/editors/vscode/icons/mint.svg +4 -0
- package/editors/vscode/icons/shift.svg +6 -0
- package/editors/vscode/language-configuration-schema.json +24 -0
- package/editors/vscode/package.json +172 -12
- package/editors/vscode/snippets/axiom.json +12 -0
- package/editors/vscode/snippets/bloom.json +12 -0
- package/editors/vscode/snippets/helm.json +12 -0
- package/editors/vscode/snippets/hive.json +12 -0
- package/editors/vscode/snippets/mint.json +12 -0
- package/editors/vscode/snippets/shift.json +17 -0
- package/editors/vscode/syntaxes/axiom.tmLanguage.json +5 -0
- package/editors/vscode/syntaxes/bloom.tmLanguage.json +5 -0
- package/editors/vscode/syntaxes/helm.tmLanguage.json +5 -0
- package/editors/vscode/syntaxes/hive.tmLanguage.json +5 -0
- package/editors/vscode/syntaxes/mint.tmLanguage.json +5 -0
- package/editors/vscode/syntaxes/schema.tmLanguage.json +89 -0
- package/editors/vscode/syntaxes/shift.tmLanguage.json +5 -0
- package/examples/game/.cluaupp/compile-cache/ReplicatedStorage__Shared__Constants__Datas__TemplateData.clh.json +1 -0
- package/examples/game/.cluaupp/compile-cache/ServerScriptService__Boot__DataBoot.server.clpp.json +1 -0
- package/examples/game/.cluaupp/compile-cache/ServerScriptService__Configuration__ServerConfig.clp.json +1 -0
- package/examples/game/.cluaupp/compile-cache/ServerScriptService__Handlers__Guard.server.clpp.json +1 -0
- package/examples/game/.cluaupp/compile-cache/ServerScriptService__Handlers__PlayerHandler.server.clpp.json +1 -0
- package/examples/game/.cluaupp/compile-cache/StarterPlayer__StarterCharacterScripts__Character__CharacterReady.client.clpp.json +1 -0
- package/examples/game/.cluaupp/compile-cache/StarterPlayer__StarterPlayerScripts__Controllers__DataController.client.clpp.json +1 -0
- package/examples/game/.cluaupp/compile-cache/index.json +12 -0
- package/examples/game/.cluaupp/datamodel-profile.json +94 -0
- package/examples/game/.vscode/settings.json +12 -1
- package/examples/game/include/clpp/datatypes.clh +337 -373
- package/examples/game/include/clpp/generated/datamodel.clh +25 -0
- package/examples/game/include/clpp/generated/enums.clh +1 -1
- package/examples/game/include/clpp/generated/instances.clh +41135 -41064
- package/examples/game/include/clpp/libs/axiom.clh +1 -1
- package/examples/game/include/clpp/libs/math.clh +14 -0
- package/examples/game/include/clpp/libs/spring.clh +17 -0
- package/examples/game/include/clpp/libs/ward.clh +1 -0
- package/examples/game/include/clpp/roblox.clh +3 -4
- package/examples/game/libs/ArrayIndexer/init.luau +209 -0
- package/examples/game/libs/Axiom/init.luau +608 -0
- package/examples/game/libs/Bloom/init.luau +433 -0
- package/examples/game/libs/Coil/init.luau +215 -0
- package/examples/game/libs/Crest/init.luau +426 -0
- package/examples/game/libs/Echo/init.luau +417 -0
- package/examples/game/libs/Ember/init.luau +365 -0
- package/examples/game/libs/Flare/init.luau +717 -0
- package/examples/game/libs/Gleam/init.luau +729 -0
- package/examples/game/libs/Guide/init.luau +215 -0
- package/examples/game/libs/Helm/init.luau +377 -0
- package/examples/game/libs/Hive/init.luau +241 -0
- package/examples/game/libs/Keep/Client.luau +114 -0
- package/examples/game/libs/Keep/Data.luau +883 -0
- package/examples/game/libs/Keep/Engine.luau +211 -0
- package/examples/game/libs/Keep/Enum.luau +6 -0
- package/examples/game/libs/Keep/Enums.luau +10 -0
- package/examples/game/libs/Keep/Path.luau +236 -0
- package/examples/game/libs/Keep/Replicator.luau +298 -0
- package/examples/game/libs/Keep/Server.luau +251 -0
- package/examples/game/libs/Keep/Store.luau +652 -0
- package/examples/game/libs/Keep/Trade.luau +455 -0
- package/examples/game/libs/Keep/init.luau +205 -0
- package/examples/game/libs/Lens/init.luau +609 -0
- package/examples/game/libs/Mint/init.luau +279 -0
- package/examples/game/libs/Net/init.luau +156 -0
- package/examples/game/libs/Net/src/codec.luau +224 -0
- package/examples/game/libs/Occlude/init.luau +117 -0
- package/examples/game/libs/Pin/init.luau +309 -0
- package/examples/game/libs/Promise/LICENSE +21 -0
- package/examples/game/libs/Promise/_impl/LICENSE +21 -0
- package/examples/game/libs/Promise/_impl/init.lua +1991 -0
- package/examples/game/libs/Promise/init.lua +1990 -0
- package/examples/game/libs/Promise/init.luau +13 -0
- package/examples/game/libs/Promise/types.luau +46 -0
- package/examples/game/libs/Roster/init.luau +686 -0
- package/examples/game/libs/SOURCES.md +31 -0
- package/examples/game/libs/Shift/init.luau +238 -0
- package/examples/game/libs/Spark/init.luau +487 -0
- package/examples/game/libs/Stage/init.luau +178 -0
- package/examples/game/libs/Sweep/init.luau +259 -0
- package/examples/game/libs/Trace/init.luau +213 -0
- package/examples/game/libs/Ward/init.luau +211 -0
- package/examples/game/out/ReplicatedStorage/Shared/Constants/Datas/TemplateData.luau +29 -0
- package/examples/game/out/ReplicatedStorage/Shared/Constants/Datas/TemplateData.luau.map.json +13 -0
- package/examples/game/out/ReplicatedStorage/Shared/Net/Net.luau +83 -0
- package/examples/game/out/ReplicatedStorage/Shared/Net/Net.luau.map.json +13 -0
- package/examples/game/out/ServerScriptService/Boot/DataBoot.server.luau +18 -0
- package/examples/game/out/ServerScriptService/Boot/DataBoot.server.luau.map.json +13 -0
- package/examples/game/out/ServerScriptService/Configuration/ServerConfig.luau +14 -0
- package/examples/game/out/ServerScriptService/Configuration/ServerConfig.luau.map.json +13 -0
- package/examples/game/out/ServerScriptService/Handlers/Guard.server.luau +15 -0
- package/examples/game/out/ServerScriptService/Handlers/Guard.server.luau.map.json +13 -0
- package/examples/game/out/ServerScriptService/Handlers/PlayerHandler.server.luau +50 -0
- package/examples/game/out/ServerScriptService/Handlers/PlayerHandler.server.luau.map.json +13 -0
- package/examples/game/out/StarterPlayer/StarterCharacterScripts/Character/CharacterReady.client.luau +12 -0
- package/examples/game/out/StarterPlayer/StarterCharacterScripts/Character/CharacterReady.client.luau.map.json +13 -0
- package/examples/game/out/StarterPlayer/StarterPlayerScripts/Controllers/DataController.client.luau +16 -0
- package/examples/game/out/StarterPlayer/StarterPlayerScripts/Controllers/DataController.client.luau.map.json +13 -0
- package/examples/game/src/ReplicatedStorage/Shared/Net/Net.clh +26 -0
- package/examples/game/src/ServerScriptService/Boot/DataBoot.server.clpp +1 -1
- package/examples/game/src/ServerScriptService/Handlers/PlayerHandler.server.clpp +1 -1
- package/examples/game/stylua.toml +9 -0
- package/generated/api/build-profile.js +115 -0
- package/generated/api/cache.js +44 -0
- package/generated/api/coverage.js +32 -0
- package/generated/api/diff.js +125 -0
- package/generated/api/generators/clpp-headers.js +353 -0
- package/generated/api/generators/docs-reference.js +7 -0
- package/generated/api/generators/lsp-index.js +81 -0
- package/generated/api/generators/luau-defs.js +94 -0
- package/generated/api/ide.js +76 -0
- package/generated/api/identifier.js +47 -0
- package/generated/api/index.js +324 -0
- package/generated/api/loader.js +57 -0
- package/generated/api/merge.js +88 -0
- package/generated/api/model.js +5 -0
- package/generated/api/normalize.js +231 -0
- package/generated/api/overrides-validate.js +58 -0
- package/generated/api/perf.js +12 -0
- package/generated/api/registry.js +136 -0
- package/generated/api/release.js +44 -0
- package/generated/api/resolver.js +250 -0
- package/generated/api/sources/aux-types-diff.js +75 -0
- package/generated/api/sources/client-tracker.js +11 -0
- package/generated/api/sources/creator-docs.js +42 -0
- package/generated/api/sources/luau-types.js +34 -0
- package/generated/api/sources/mini-dump.js +17 -0
- package/generated/api/sources/studio-api.js +8 -0
- package/generated/api/sources/studio-apiv2.js +11 -0
- package/generated/api/sources/studio-full-api.js +8 -0
- package/generated/api/studio-smoke.js +80 -0
- package/generated/api/type-parse.js +49 -0
- package/generated/api/understander.js +51 -0
- package/generated/api/validate.js +135 -0
- package/generated/api-cli.js +421 -0
- package/generated/cli.js +16 -5
- package/generated/clpp/contract.js +3 -3
- package/generated/clpp/format-luau.js +236 -0
- package/generated/clpp/index.js +13 -1
- package/generated/clpp/modules.js +227 -0
- package/generated/clpp/postprocess.js +86 -5
- package/generated/clpp/rewrite-janitor.js +145 -0
- package/generated/clpp/runner.js +14 -2
- package/generated/compile.js +82 -0
- package/generated/flare/parse.js +12 -1
- package/generated/intellisense.js +57 -1
- package/generated/native/index.js +217 -16
- package/generated/target/authority-check.js +136 -0
- package/generated/target/authority-graph.js +74 -0
- package/generated/target/build-cache.js +112 -0
- package/generated/target/capabilities.js +89 -0
- package/generated/target/capability-profile.js +30 -0
- package/generated/target/component-contracts.js +60 -0
- package/generated/target/context-check.js +160 -0
- package/generated/target/datamodel-check.js +170 -0
- package/generated/target/datamodel-generate.js +74 -0
- package/generated/target/datamodel.js +233 -0
- package/generated/target/diagnostics.js +63 -0
- package/generated/target/doctor.js +152 -0
- package/generated/target/flare-version.js +58 -0
- package/generated/target/get-service.js +69 -0
- package/generated/target/lifetime-check.js +47 -0
- package/generated/target/luau-stamp.js +39 -0
- package/generated/target/optimizer-advise.js +88 -0
- package/generated/target/optimizer-apply.js +44 -0
- package/generated/target/optimizer-soa.js +254 -0
- package/generated/target/parallel-check.js +136 -0
- package/generated/target/pgo.js +148 -0
- package/generated/target/project-docs.js +69 -0
- package/generated/target/project-graph.js +71 -0
- package/generated/target/roblox.js +63 -0
- package/generated/target/security-check.js +41 -0
- package/generated/target/source-map.js +25 -0
- package/generated/target/studio-bridge.js +112 -0
- package/generated/utils/project.js +178 -8
- package/generated/utils/rojo-mapper.js +11 -3
- package/include/clpp/datatypes.clh +337 -373
- package/include/clpp/generated/enums.clh +1 -1
- package/include/clpp/generated/instances.clh +41135 -41064
- package/include/clpp/libs/axiom.clh +1 -1
- package/include/clpp/libs/hive.clh +1 -0
- package/include/clpp/libs/keep.clh +2 -0
- package/include/clpp/libs/math.clh +14 -0
- package/include/clpp/libs/spring.clh +17 -0
- package/include/clpp/libs/ward.clh +1 -0
- package/include/clpp/roblox.clh +3 -4
- package/package.json +10 -3
- package/plugins/CluauppNav/Plugin.luau +207 -0
- package/plugins/CluauppNav/ProfileLogger.luau +27 -0
- package/plugins/CluauppNav/README.md +24 -0
- package/runtime/Axiom/init.luau +10 -7
- package/runtime/Coil/init.luau +8 -2
- package/runtime/Crest/init.luau +1 -0
- package/runtime/Flare/init.luau +2 -1
- package/runtime/Gleam/init.luau +15 -4
- package/runtime/Hive/init.luau +36 -14
- package/runtime/Pin/init.luau +5 -2
- package/runtime/Roster/init.luau +2 -0
- package/runtime/Spark/init.luau +3 -0
- package/runtime/Sweep/init.luau +2 -0
- package/runtime/Trace/init.luau +3 -0
- package/runtime/Ward/init.luau +38 -5
- package/scripts/postinstall-editor.js +17 -0
- package/skills/README.md +13 -0
- package/skills/clpp-hive-flare/SKILL.md +79 -0
- package/skills/clpp-language/SKILL.md +123 -0
- package/skills/clpp-language/compiler.md +89 -0
- package/skills/clpp-style/SKILL.md +95 -0
- package/src/api/build-profile.ts +138 -0
- package/src/api/cache.ts +45 -0
- package/src/api/coverage.ts +46 -0
- package/src/api/diff.ts +143 -0
- package/src/api/generators/clpp-headers.ts +377 -0
- package/src/api/generators/docs-reference.ts +11 -0
- package/src/api/generators/lsp-index.ts +106 -0
- package/src/api/generators/luau-defs.ts +98 -0
- package/src/api/ide.ts +87 -0
- package/src/api/identifier.ts +47 -0
- package/src/api/index.ts +269 -0
- package/src/api/loader.ts +60 -0
- package/src/api/merge.ts +126 -0
- package/src/api/model.ts +283 -0
- package/src/api/normalize.ts +257 -0
- package/src/api/overrides-validate.ts +58 -0
- package/src/api/perf.ts +15 -0
- package/src/api/registry.ts +162 -0
- package/src/api/release.ts +47 -0
- package/src/api/resolver.ts +255 -0
- package/src/api/sources/aux-types-diff.ts +81 -0
- package/src/api/sources/client-tracker.ts +10 -0
- package/src/api/sources/creator-docs.ts +37 -0
- package/src/api/sources/luau-types.ts +30 -0
- package/src/api/sources/mini-dump.ts +50 -0
- package/src/api/sources/studio-api.ts +7 -0
- package/src/api/sources/studio-apiv2.ts +10 -0
- package/src/api/sources/studio-full-api.ts +7 -0
- package/src/api/studio-smoke.ts +82 -0
- package/src/api/type-parse.ts +48 -0
- package/src/api/understander.ts +72 -0
- package/src/api/validate.ts +160 -0
- package/src/api-cli.ts +493 -0
- package/src/api.generated.js +37 -22
- package/src/cli.ts +21 -6
- package/src/clpp/contract.ts +34 -3
- package/src/clpp/format-luau.ts +262 -0
- package/src/clpp/index.ts +13 -2
- package/src/clpp/modules.ts +252 -0
- package/src/clpp/postprocess.ts +100 -5
- package/src/clpp/rewrite-janitor.ts +156 -0
- package/src/clpp/runner.ts +14 -2
- package/src/compile.ts +87 -0
- package/src/flare/parse.ts +14 -1
- package/src/flare/types.ts +2 -0
- package/src/intellisense.ts +58 -1
- package/src/native/index.ts +225 -16
- package/src/target/authority-check.ts +162 -0
- package/src/target/authority-graph.ts +80 -0
- package/src/target/build-cache.ts +129 -0
- package/src/target/capabilities.ts +115 -0
- package/src/target/capability-profile.ts +25 -0
- package/src/target/component-contracts.ts +64 -0
- package/src/target/context-check.ts +177 -0
- package/src/target/datamodel-check.ts +188 -0
- package/src/target/datamodel-generate.ts +78 -0
- package/src/target/datamodel.ts +261 -0
- package/src/target/diagnostics.ts +67 -0
- package/src/target/doctor.ts +171 -0
- package/src/target/flare-version.ts +61 -0
- package/src/target/get-service.ts +85 -0
- package/src/target/lifetime-check.ts +45 -0
- package/src/target/luau-stamp.ts +33 -0
- package/src/target/optimizer-advise.ts +93 -0
- package/src/target/optimizer-apply.ts +63 -0
- package/src/target/optimizer-soa.ts +270 -0
- package/src/target/parallel-check.ts +135 -0
- package/src/target/pgo.ts +157 -0
- package/src/target/project-docs.ts +68 -0
- package/src/target/project-graph.ts +75 -0
- package/src/target/roblox.ts +78 -0
- package/src/target/security-check.ts +40 -0
- package/src/target/source-map.ts +36 -0
- package/src/target/studio-bridge.ts +140 -0
- package/src/types.ts +14 -0
- package/src/utils/project.ts +183 -9
- package/src/utils/rojo-mapper.ts +12 -3
- package/stylua.toml +9 -0
- package/templates/game/.vscode/settings.json +7 -1
- package/templates/game/include/clpp/datatypes.clh +337 -373
- package/templates/game/include/clpp/generated/enums.clh +1 -1
- package/templates/game/include/clpp/generated/instances.clh +41135 -41064
- package/templates/game/include/clpp/libs/axiom.clh +1 -1
- package/templates/game/include/clpp/libs/ward.clh +1 -0
- package/templates/game/include/clpp/roblox.clh +3 -4
- package/templates/game/src/ServerScriptService/Boot/DataBoot.server.clpp +1 -1
- package/templates/game/src/ServerScriptService/Handlers/PlayerHandler.server.clpp +1 -1
- package/templates/game/stylua.toml +9 -0
package/editors/vscode/README.md
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
# Cluaupp
|
|
1
|
+
# Cluaupp schemas
|
|
2
2
|
|
|
3
|
-
VS Code / Cursor language support for Cluaupp
|
|
3
|
+
VS Code / Cursor language support for Cluaupp live schemas.
|
|
4
4
|
|
|
5
5
|
Installed by `cluaupp intellisense` into `~/.cursor/extensions` and `~/.vscode/extensions`.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Languages
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
| Ext | Highlight | Completions |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| `.flare` | packets / queries | Flare IntelliSense (hover, diagnostics, outline) |
|
|
12
|
+
| `.hive` | components | snippets |
|
|
13
|
+
| `.mint` | formatters | snippets |
|
|
14
|
+
| `.bloom` | presets | snippets |
|
|
15
|
+
| `.helm` | commands | snippets |
|
|
16
|
+
| `.shift` | states / transitions | snippets |
|
|
17
|
+
| `.axiom` | groups | snippets |
|
|
16
18
|
|
|
17
19
|
CL++ (`.clpp` / `.clp` / `.clh`) highlighting still comes from `clpp setup`.
|
|
@@ -84,6 +84,76 @@ function activate(context) {
|
|
|
84
84
|
collection.set(document.uri, diagnostics);
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
+
async function openClppPath(relPath, line) {
|
|
88
|
+
const folders = vscode.workspace.workspaceFolders || [];
|
|
89
|
+
if (!folders.length || !relPath) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const root = folders[0].uri.fsPath;
|
|
93
|
+
const candidates = [
|
|
94
|
+
path.join(root, relPath),
|
|
95
|
+
path.join(root, "src", relPath),
|
|
96
|
+
path.join(root, relPath.replace(/^src[\\/]/, "")),
|
|
97
|
+
];
|
|
98
|
+
let file = null;
|
|
99
|
+
for (const c of candidates) {
|
|
100
|
+
if (fs.existsSync(c)) {
|
|
101
|
+
file = c;
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
if (!file) {
|
|
106
|
+
vscode.window.showWarningMessage(`Cluaupp bridge: file not found ${relPath}`);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
const doc = await vscode.workspace.openTextDocument(file);
|
|
110
|
+
const editor = await vscode.window.showTextDocument(doc, { preview: false });
|
|
111
|
+
if (line && line > 0) {
|
|
112
|
+
const pos = new vscode.Position(Math.max(0, line - 1), 0);
|
|
113
|
+
editor.selection = new vscode.Selection(pos, pos);
|
|
114
|
+
editor.revealRange(new vscode.Range(pos, pos));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let bridgeSince = 0;
|
|
119
|
+
let bridgeTimer = null;
|
|
120
|
+
const startBridgePoll = () => {
|
|
121
|
+
if (bridgeTimer) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const cfg = () => vscode.workspace.getConfiguration("cluaupp");
|
|
125
|
+
bridgeTimer = setInterval(async () => {
|
|
126
|
+
const base = cfg().get("bridgeUrl") || "http://127.0.0.1:3847";
|
|
127
|
+
try {
|
|
128
|
+
const res = await fetch(`${base}/events?since=${bridgeSince}`);
|
|
129
|
+
if (!res.ok) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const data = await res.json();
|
|
133
|
+
for (const ev of data.events || []) {
|
|
134
|
+
bridgeSince = Math.max(bridgeSince, ev.id || 0);
|
|
135
|
+
if ((ev.type === "open" || ev.type === "error") && ev.path) {
|
|
136
|
+
await openClppPath(ev.path, ev.line);
|
|
137
|
+
if (ev.type === "error" && ev.message) {
|
|
138
|
+
vscode.window.showErrorMessage(`Studio: ${ev.message} (${ev.path}:${ev.line || "?"})`);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
} catch {
|
|
143
|
+
/* bridge offline */
|
|
144
|
+
}
|
|
145
|
+
}, Number(cfg().get("bridgePollMs") || 1000));
|
|
146
|
+
context.subscriptions.push({
|
|
147
|
+
dispose: () => {
|
|
148
|
+
if (bridgeTimer) {
|
|
149
|
+
clearInterval(bridgeTimer);
|
|
150
|
+
bridgeTimer = null;
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
});
|
|
154
|
+
vscode.window.showInformationMessage("Cluaupp: polling Studio bridge");
|
|
155
|
+
};
|
|
156
|
+
|
|
87
157
|
context.subscriptions.push(
|
|
88
158
|
vscode.workspace.onDidOpenTextDocument(refresh),
|
|
89
159
|
vscode.workspace.onDidChangeTextDocument((event) => refresh(event.document)),
|
|
@@ -101,6 +171,13 @@ function activate(context) {
|
|
|
101
171
|
vscode.window.showErrorMessage(String(err.message || err));
|
|
102
172
|
}
|
|
103
173
|
}),
|
|
174
|
+
vscode.commands.registerCommand("cluaupp.startBridgePoll", () => startBridgePoll()),
|
|
175
|
+
vscode.commands.registerCommand("cluaupp.openFromBridge", async () => {
|
|
176
|
+
const pathInput = await vscode.window.showInputBox({ prompt: "CL++ relative path" });
|
|
177
|
+
if (pathInput) {
|
|
178
|
+
await openClppPath(pathInput, 1);
|
|
179
|
+
}
|
|
180
|
+
}),
|
|
104
181
|
vscode.languages.registerCompletionItemProvider(
|
|
105
182
|
selector,
|
|
106
183
|
{
|
|
@@ -186,6 +263,11 @@ function activate(context) {
|
|
|
186
263
|
for (const document of vscode.workspace.textDocuments) {
|
|
187
264
|
refresh(document);
|
|
188
265
|
}
|
|
266
|
+
|
|
267
|
+
const folders = vscode.workspace.workspaceFolders || [];
|
|
268
|
+
if (folders.some((f) => fs.existsSync(path.join(f.uri.fsPath, "default.project.json")))) {
|
|
269
|
+
startBridgePoll();
|
|
270
|
+
}
|
|
189
271
|
}
|
|
190
272
|
|
|
191
273
|
function deactivate() {}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<rect width="32" height="32" rx="6" fill="#5B21B6"/>
|
|
3
|
+
<rect x="8" y="8" width="16" height="16" rx="2" fill="none" stroke="#EDE9FE" stroke-width="2.2"/>
|
|
4
|
+
<circle cx="16" cy="16" r="2.2" fill="#C4B5FD"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<rect width="32" height="32" rx="6" fill="#1D4ED8"/>
|
|
3
|
+
<circle cx="10" cy="16" r="3" fill="none" stroke="#DBEAFE" stroke-width="2"/>
|
|
4
|
+
<circle cx="22" cy="16" r="3" fill="none" stroke="#DBEAFE" stroke-width="2"/>
|
|
5
|
+
<path d="M13 16 H19" stroke="#93C5FD" stroke-width="2"/>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"lineComment": "//"
|
|
4
|
+
},
|
|
5
|
+
"brackets": [
|
|
6
|
+
["{", "}"],
|
|
7
|
+
["(", ")"]
|
|
8
|
+
],
|
|
9
|
+
"autoClosingPairs": [
|
|
10
|
+
{ "open": "{", "close": "}" },
|
|
11
|
+
{ "open": "(", "close": ")" },
|
|
12
|
+
{ "open": "\"", "close": "\"" }
|
|
13
|
+
],
|
|
14
|
+
"surroundingPairs": [
|
|
15
|
+
["{", "}"],
|
|
16
|
+
["(", ")"],
|
|
17
|
+
["\"", "\""]
|
|
18
|
+
],
|
|
19
|
+
"wordPattern": "[A-Za-z_][A-Za-z0-9_]*",
|
|
20
|
+
"indentationRules": {
|
|
21
|
+
"increaseIndentPattern": "^\\s*.*\\{\\s*$",
|
|
22
|
+
"decreaseIndentPattern": "^\\s*\\}"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cluaupp-flare",
|
|
3
|
-
"displayName": "Cluaupp
|
|
4
|
-
"description": "IntelliSense for Cluaupp
|
|
5
|
-
"version": "1.5.
|
|
3
|
+
"displayName": "Cluaupp",
|
|
4
|
+
"description": "Highlighting and IntelliSense for Cluaupp schemas: .flare, .hive, .mint, .bloom, .helm, .shift, .axiom. CL++ (.clpp) still comes from clpp setup.",
|
|
5
|
+
"version": "1.5.1",
|
|
6
6
|
"publisher": "kartzdev",
|
|
7
7
|
"engines": {
|
|
8
8
|
"vscode": "^1.74.0"
|
|
@@ -14,31 +14,96 @@
|
|
|
14
14
|
],
|
|
15
15
|
"keywords": [
|
|
16
16
|
"flare",
|
|
17
|
+
"hive",
|
|
17
18
|
"cluaupp",
|
|
18
19
|
"roblox",
|
|
19
20
|
"clpp"
|
|
20
21
|
],
|
|
21
22
|
"activationEvents": [
|
|
22
23
|
"onLanguage:flare",
|
|
23
|
-
"
|
|
24
|
+
"onLanguage:hive",
|
|
25
|
+
"onLanguage:mint",
|
|
26
|
+
"onLanguage:bloom",
|
|
27
|
+
"onLanguage:helm",
|
|
28
|
+
"onLanguage:shift",
|
|
29
|
+
"onLanguage:axiom",
|
|
30
|
+
"workspaceContains:**/*.flare",
|
|
31
|
+
"workspaceContains:**/*.hive",
|
|
32
|
+
"onCommand:cluaupp.openFromBridge",
|
|
33
|
+
"onCommand:cluaupp.startBridgePoll"
|
|
24
34
|
],
|
|
25
35
|
"main": "./extension.js",
|
|
26
36
|
"contributes": {
|
|
27
37
|
"languages": [
|
|
28
38
|
{
|
|
29
39
|
"id": "flare",
|
|
30
|
-
"aliases": [
|
|
31
|
-
|
|
32
|
-
"flare"
|
|
33
|
-
],
|
|
34
|
-
"extensions": [
|
|
35
|
-
".flare"
|
|
36
|
-
],
|
|
40
|
+
"aliases": ["Flare", "flare"],
|
|
41
|
+
"extensions": [".flare"],
|
|
37
42
|
"configuration": "./language-configuration.json",
|
|
38
43
|
"icon": {
|
|
39
44
|
"light": "./icons/flare.svg",
|
|
40
45
|
"dark": "./icons/flare.svg"
|
|
41
46
|
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "hive",
|
|
50
|
+
"aliases": ["Hive", "hive"],
|
|
51
|
+
"extensions": [".hive"],
|
|
52
|
+
"configuration": "./language-configuration-schema.json",
|
|
53
|
+
"icon": {
|
|
54
|
+
"light": "./icons/hive.svg",
|
|
55
|
+
"dark": "./icons/hive.svg"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "mint",
|
|
60
|
+
"aliases": ["Mint", "mint"],
|
|
61
|
+
"extensions": [".mint"],
|
|
62
|
+
"configuration": "./language-configuration-schema.json",
|
|
63
|
+
"icon": {
|
|
64
|
+
"light": "./icons/mint.svg",
|
|
65
|
+
"dark": "./icons/mint.svg"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "bloom",
|
|
70
|
+
"aliases": ["Bloom", "bloom"],
|
|
71
|
+
"extensions": [".bloom"],
|
|
72
|
+
"configuration": "./language-configuration-schema.json",
|
|
73
|
+
"icon": {
|
|
74
|
+
"light": "./icons/bloom.svg",
|
|
75
|
+
"dark": "./icons/bloom.svg"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "helm",
|
|
80
|
+
"aliases": ["Helm", "helm"],
|
|
81
|
+
"extensions": [".helm"],
|
|
82
|
+
"configuration": "./language-configuration-schema.json",
|
|
83
|
+
"icon": {
|
|
84
|
+
"light": "./icons/helm.svg",
|
|
85
|
+
"dark": "./icons/helm.svg"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "shift",
|
|
90
|
+
"aliases": ["Shift", "shift"],
|
|
91
|
+
"extensions": [".shift"],
|
|
92
|
+
"configuration": "./language-configuration-schema.json",
|
|
93
|
+
"icon": {
|
|
94
|
+
"light": "./icons/shift.svg",
|
|
95
|
+
"dark": "./icons/shift.svg"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "axiom",
|
|
100
|
+
"aliases": ["Axiom", "axiom"],
|
|
101
|
+
"extensions": [".axiom"],
|
|
102
|
+
"configuration": "./language-configuration-schema.json",
|
|
103
|
+
"icon": {
|
|
104
|
+
"light": "./icons/axiom.svg",
|
|
105
|
+
"dark": "./icons/axiom.svg"
|
|
106
|
+
}
|
|
42
107
|
}
|
|
43
108
|
],
|
|
44
109
|
"grammars": [
|
|
@@ -46,23 +111,110 @@
|
|
|
46
111
|
"language": "flare",
|
|
47
112
|
"scopeName": "source.flare",
|
|
48
113
|
"path": "./syntaxes/flare.tmLanguage.json"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"scopeName": "source.cluaupp-schema",
|
|
117
|
+
"path": "./syntaxes/schema.tmLanguage.json"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"language": "hive",
|
|
121
|
+
"scopeName": "source.hive",
|
|
122
|
+
"path": "./syntaxes/hive.tmLanguage.json"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"language": "mint",
|
|
126
|
+
"scopeName": "source.mint",
|
|
127
|
+
"path": "./syntaxes/mint.tmLanguage.json"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"language": "bloom",
|
|
131
|
+
"scopeName": "source.bloom",
|
|
132
|
+
"path": "./syntaxes/bloom.tmLanguage.json"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"language": "helm",
|
|
136
|
+
"scopeName": "source.helm",
|
|
137
|
+
"path": "./syntaxes/helm.tmLanguage.json"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"language": "shift",
|
|
141
|
+
"scopeName": "source.shift",
|
|
142
|
+
"path": "./syntaxes/shift.tmLanguage.json"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"language": "axiom",
|
|
146
|
+
"scopeName": "source.axiom",
|
|
147
|
+
"path": "./syntaxes/axiom.tmLanguage.json"
|
|
49
148
|
}
|
|
50
149
|
],
|
|
51
150
|
"snippets": [
|
|
52
151
|
{
|
|
53
152
|
"language": "flare",
|
|
54
153
|
"path": "./snippets/flare.json"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"language": "hive",
|
|
157
|
+
"path": "./snippets/hive.json"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"language": "mint",
|
|
161
|
+
"path": "./snippets/mint.json"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"language": "bloom",
|
|
165
|
+
"path": "./snippets/bloom.json"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"language": "helm",
|
|
169
|
+
"path": "./snippets/helm.json"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"language": "shift",
|
|
173
|
+
"path": "./snippets/shift.json"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"language": "axiom",
|
|
177
|
+
"path": "./snippets/axiom.json"
|
|
55
178
|
}
|
|
56
179
|
],
|
|
57
180
|
"commands": [
|
|
58
181
|
{
|
|
59
182
|
"command": "cluaupp.restartIntelliSense",
|
|
60
183
|
"title": "Cluaupp: Reload Flare IntelliSense"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"command": "cluaupp.startBridgePoll",
|
|
187
|
+
"title": "Cluaupp: Start Studio Bridge Poll (open files from Studio)"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"command": "cluaupp.openFromBridge",
|
|
191
|
+
"title": "Cluaupp: Open Path from Bridge Event"
|
|
61
192
|
}
|
|
62
193
|
],
|
|
194
|
+
"configuration": {
|
|
195
|
+
"title": "Cluaupp",
|
|
196
|
+
"properties": {
|
|
197
|
+
"cluaupp.bridgeUrl": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"default": "http://127.0.0.1:3847",
|
|
200
|
+
"description": "URL of `cluaupp bridge` for Studio↔IDE sync"
|
|
201
|
+
},
|
|
202
|
+
"cluaupp.bridgePollMs": {
|
|
203
|
+
"type": "number",
|
|
204
|
+
"default": 1000,
|
|
205
|
+
"description": "How often to poll the Studio bridge for open/error events"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
63
209
|
"configurationDefaults": {
|
|
64
210
|
"files.associations": {
|
|
65
|
-
"*.flare": "flare"
|
|
211
|
+
"*.flare": "flare",
|
|
212
|
+
"*.hive": "hive",
|
|
213
|
+
"*.mint": "mint",
|
|
214
|
+
"*.bloom": "bloom",
|
|
215
|
+
"*.helm": "helm",
|
|
216
|
+
"*.shift": "shift",
|
|
217
|
+
"*.axiom": "axiom"
|
|
66
218
|
},
|
|
67
219
|
"[flare]": {
|
|
68
220
|
"editor.quickSuggestions": {
|
|
@@ -73,6 +225,14 @@
|
|
|
73
225
|
"editor.suggest.insertMode": "replace",
|
|
74
226
|
"editor.tabCompletion": "on",
|
|
75
227
|
"editor.wordBasedSuggestions": false
|
|
228
|
+
},
|
|
229
|
+
"[hive]": {
|
|
230
|
+
"editor.quickSuggestions": {
|
|
231
|
+
"other": true,
|
|
232
|
+
"comments": false,
|
|
233
|
+
"strings": true
|
|
234
|
+
},
|
|
235
|
+
"editor.tabCompletion": "on"
|
|
76
236
|
}
|
|
77
237
|
}
|
|
78
238
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opt name": {
|
|
3
|
+
"prefix": "opt",
|
|
4
|
+
"body": "opt name = ${1:HudBloom}",
|
|
5
|
+
"description": "Generated module name"
|
|
6
|
+
},
|
|
7
|
+
"Preset gradient": {
|
|
8
|
+
"prefix": "preset",
|
|
9
|
+
"body": "preset ${1:Shine} { gradient 0 #FFC832 1 #FF5A1F speed ${2:0.4} }",
|
|
10
|
+
"description": "Bloom shine preset"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opt name": {
|
|
3
|
+
"prefix": "opt",
|
|
4
|
+
"body": "opt name = ${1:Admin}",
|
|
5
|
+
"description": "Generated module name"
|
|
6
|
+
},
|
|
7
|
+
"Command": {
|
|
8
|
+
"prefix": "command",
|
|
9
|
+
"body": "command ${1:Give}(${2:Player} ${3:target}, ${4:i32} ${5:amount}) permission ${6:Admin}",
|
|
10
|
+
"description": "Helm command"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opt name": {
|
|
3
|
+
"prefix": "opt",
|
|
4
|
+
"body": "opt name = ${1:PlayerECS}",
|
|
5
|
+
"description": "Generated module name (PlayerECS.clh / PlayerECS.Health)"
|
|
6
|
+
},
|
|
7
|
+
"Component": {
|
|
8
|
+
"prefix": "component",
|
|
9
|
+
"body": "component ${1:Health} { ${2:i32} ${3:current}, ${4:i32} ${5:max} }",
|
|
10
|
+
"description": "Hive component column"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opt name": {
|
|
3
|
+
"prefix": "opt",
|
|
4
|
+
"body": "opt name = ${1:HudMint}",
|
|
5
|
+
"description": "Generated module name"
|
|
6
|
+
},
|
|
7
|
+
"Formatter compact": {
|
|
8
|
+
"prefix": "formatter",
|
|
9
|
+
"body": "formatter ${1:Coins} compact(\"K\", \"M\", \"B\") fraction ${2:1} grouping on",
|
|
10
|
+
"description": "Mint compact number formatter"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"opt name": {
|
|
3
|
+
"prefix": "opt",
|
|
4
|
+
"body": "opt name = ${1:NpcBrain}",
|
|
5
|
+
"description": "Generated module name"
|
|
6
|
+
},
|
|
7
|
+
"State": {
|
|
8
|
+
"prefix": "state",
|
|
9
|
+
"body": "state ${1:Idle}",
|
|
10
|
+
"description": "Shift FSM state"
|
|
11
|
+
},
|
|
12
|
+
"Transition": {
|
|
13
|
+
"prefix": "trans",
|
|
14
|
+
"body": "${1:Idle} -> ${2:Chase} when ${3:SeePlayer}",
|
|
15
|
+
"description": "Shift transition"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
3
|
+
"name": "Cluaupp Schema",
|
|
4
|
+
"scopeName": "source.cluaupp-schema",
|
|
5
|
+
"patterns": [
|
|
6
|
+
{ "include": "#comments" },
|
|
7
|
+
{ "include": "#strings" },
|
|
8
|
+
{ "include": "#hex" },
|
|
9
|
+
{ "include": "#keywords" },
|
|
10
|
+
{ "include": "#types" },
|
|
11
|
+
{ "include": "#operators" },
|
|
12
|
+
{ "include": "#names" },
|
|
13
|
+
{ "include": "#numbers" }
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"comments": {
|
|
17
|
+
"patterns": [
|
|
18
|
+
{
|
|
19
|
+
"name": "comment.line.double-slash.cluaupp-schema",
|
|
20
|
+
"match": "//.*$"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "comment.line.number-sign.cluaupp-schema",
|
|
24
|
+
"match": "#.*$"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"strings": {
|
|
29
|
+
"name": "string.quoted.double.cluaupp-schema",
|
|
30
|
+
"begin": "\"",
|
|
31
|
+
"end": "\""
|
|
32
|
+
},
|
|
33
|
+
"hex": {
|
|
34
|
+
"name": "constant.other.color.cluaupp-schema",
|
|
35
|
+
"match": "#[0-9A-Fa-f]{6}\\b"
|
|
36
|
+
},
|
|
37
|
+
"keywords": {
|
|
38
|
+
"patterns": [
|
|
39
|
+
{
|
|
40
|
+
"name": "keyword.declaration.cluaupp-schema",
|
|
41
|
+
"match": "\\b(opt|packet|query|component|formatter|preset|command|state|machine|group)\\b"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "keyword.other.cluaupp-schema",
|
|
45
|
+
"match": "\\b(from|name|parent|permission|when|fraction|grouping|gradient|speed)\\b"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "constant.language.cluaupp-schema",
|
|
49
|
+
"match": "\\b(Client|Server|compact|group|integer|percent|scientific|on|off)\\b"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "storage.modifier.cluaupp-schema",
|
|
53
|
+
"match": "\\b(unreliable|reliable)\\b"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"types": {
|
|
58
|
+
"name": "storage.type.cluaupp-schema",
|
|
59
|
+
"match": "\\b(u8|u16|u32|i8|i16|i32|int|f32|f64|float|double|number|bool|boolean|string|Vector3|Vector2|CFrame|Color3|UDim|UDim2|BrickColor|buffer|Instance|Player|Model)\\b"
|
|
60
|
+
},
|
|
61
|
+
"operators": {
|
|
62
|
+
"patterns": [
|
|
63
|
+
{
|
|
64
|
+
"name": "keyword.operator.arrow.cluaupp-schema",
|
|
65
|
+
"match": "->"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "keyword.operator.assignment.cluaupp-schema",
|
|
69
|
+
"match": "="
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"names": {
|
|
74
|
+
"patterns": [
|
|
75
|
+
{
|
|
76
|
+
"match": "\\b(component|formatter|preset|command|state|machine|group)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
|
77
|
+
"captures": {
|
|
78
|
+
"1": { "name": "keyword.declaration.cluaupp-schema" },
|
|
79
|
+
"2": { "name": "entity.name.type.cluaupp-schema" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"numbers": {
|
|
85
|
+
"name": "constant.numeric.cluaupp-schema",
|
|
86
|
+
"match": "\\b\\d+(?:\\.\\d+)?\\b"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"rel":"ReplicatedStorage/Shared/Constants/Datas/TemplateData.clh","sourceHash":"e1628d0318c4d7fb26bf21a7bd62c14040b79cb0f8c2180bc8458f1a1341f5c3","files":[{"name":"ReplicatedStorage/Shared/Constants/Datas/TemplateData.luau","contents":"--!nonstrict\n-- Compiled by CL++ — C++ × Luau\n\n-- cluaupp: Roster.new / GetService ReplicatedStorage / self.janitor\n\nexport type PlayerTemplate = {\n\tCurrencies: Currencies,\n\tRebirths: number,\n\tRank: number,\n\tInventory: PlayerInventory,\n\tTrade: PlayerTrade,\n\tSettings: PlayerSettings,\n\tCodes: PlayerCodes,\n}\n\nconst function PlayerTemplate()\n\treturn {\n\t\tCurrencies = { Coins = 0, Gems = 0 },\n\t\tRebirths = 0,\n\t\tRank = 0,\n\t\tInventory = { Slots = 20 },\n\t\tTrade = { DayKey = nil, TradesToday = 0, LastTradeAt = 0, ActiveTradeId = nil },\n\t\tSettings = { GameMusic = 100, Effects = 100 },\n\t\tCodes = { RedeemedCount = 0 },\n\t}\nend\n\nreturn PlayerTemplate\n"}],"stale":[]}
|
package/examples/game/.cluaupp/compile-cache/ServerScriptService__Boot__DataBoot.server.clpp.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"rel":"ServerScriptService/Boot/DataBoot.server.clpp","sourceHash":"c755106f7ea5dc5f9aca1ee34ee631b2a9f9eee05e2958ee69ea63c52b7bad92","files":[{"name":"ServerScriptService/Boot/DataBoot.server.luau","contents":"--!nonstrict\n-- Compiled by CL++ — C++ × Luau\n\n-- cluaupp: Roster.new / GetService ReplicatedStorage / self.janitor\n\nconst ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\nconst Keep = require(ReplicatedStorage.CluauppLibs.Keep)\nconst TemplateData = require(ReplicatedStorage.Shared.Constants.Datas.TemplateData)\n\n-- DataBoot.server.clpp:6\nconst function init()\n\tlocal playerData: PlayerTemplate = TemplateData()\n\tKeep.Server:Init({ Template = playerData, StoreName = \"PlayerData\", UseMock = true })\nend\n\ninit()\n"}],"stale":[]}
|