Skip to content

Commit

Permalink
fix structure and doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
James committed Sep 25, 2023
1 parent c4cc6c9 commit 4a269da
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/api/engine/dependencies/enginedebugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ A list of cached stack traces for the current environment.

A list of cached debug calls for the current environment.

* **[Array]((/api/engine/types#array))\<string | [Array](/api/engine/types#array)<string\>**
* **[Array](/api/engine/types#array)\<string | [Array](/api/engine/types#array)<string\>**

## Functions

Expand Down
43 changes: 28 additions & 15 deletions plugin/src/json/structure.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,50 +47,43 @@
"Vendor": {
"Controllers": {
"Vendor": {
"SanitizeData": {
"Sanitize": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Controllers/Vendor/Sanitize.luau"
}
},
"NetworkController": {
"Events": { },
"Vendor": {
"BridgeNet2": "BridgeNet2Package"
},
"NetworkController": {
"Init": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Controllers/Vendor/NetworkController/init.luau"
}
}
},
"SignalController": {
"Vendor": {
"Signal": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Controllers/Vendor/SignalController/Vendor/Signal.luau"
}
}
},
"SignalController": {
"Init": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Controllers/Vendor/SignalController/init.luau"
}
}
}
},
"Controllers": {
"Init": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Controllers/Controllers.luau"
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Controllers/init.luau"
}
}
},
"Libraries": {
"EasyProfile": {
"EasyProfile": {
"Init": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Libraries/EasyProfile/init.luau"
Expand All @@ -100,10 +93,30 @@
"ProfileService": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/MadStudioRoblox/ProfileService/master/ProfileService.lua"
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Libraries/EasyProfile/Vendor/ProfileService.luau"
}
}
}
},
"RedbloxUtils": {
"Future": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Libraries/RedbloxUtils/Future.luau"
}
},
"Signal": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Libraries/RedbloxUtils/Signal.luau"
}
},
"Spawn": {
"$className": "ModuleScript",
"$properties": {
"Source": "https://raw.githubusercontent.com/canary-development/CanaryEngine/main/src/lua/framework/Vendor/Libraries/RedbloxUtils/Spawn.luau"
}
}
}
},
"Debugger": {
Expand Down
4 changes: 2 additions & 2 deletions src/lua/framework/Vendor/Controllers/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ local Vendor = script.Parent.Vendor

-- // Variables

Controllers.SignalController = require(Vendor.SignalController.SignalController)
Controllers.NetworkController = require(Vendor.NetworkController.NetworkController)
Controllers.SignalController = require(Vendor.SignalController.Init)
Controllers.NetworkController = require(Vendor.NetworkController.Init)

-- // Functions

Expand Down
2 changes: 1 addition & 1 deletion src/lua/framework/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ end

function CanaryEngine.GetEngineServer()
if RuntimeContext.Server then
CanaryEngineServer.Data = require(EngineVendor.Libraries.EasyProfile.EasyProfile)
CanaryEngineServer.Data = require(EngineVendor.Libraries.EasyProfile.Init)
return CanaryEngineServer
else
Debugger.Debug(error, "Failed to fetch 'EngineServer', context must be server.", nil, false)
Expand Down

0 comments on commit 4a269da

Please sign in to comment.