Add control stage asserts

This commit is contained in:
Cooldude2606
2025-01-08 22:40:17 +00:00
parent e67959a239
commit 0b665bbd46
2 changed files with 22 additions and 21 deletions

View File

@@ -101,6 +101,7 @@ end
--- @param scope string
--- @return ExpGui.GuiData
function GuiData.create(scope)
ExpUtil.assert_not_runtime()
assert(GuiData._scopes[scope] == nil, "Scope already exists with name: " .. scope)
local instance = {