Bunch of updates (29.08.2025)

This commit is contained in:
2025-08-29 23:12:07 +07:00
parent 2fa17bda3f
commit 6f3a8874a7
24 changed files with 355 additions and 56 deletions

View File

@@ -1,3 +1,4 @@
-- TODO: ANNOTATE!!!!!!!!!!
Mod = {}
function Mod.getInfo()
@@ -8,6 +9,10 @@ function Mod.getInfo()
return {name = name, path = path, require = require}
end
-- Mod.
-- Mod Extend
function Mod:new()
local mod = Mod.getInfo()

View File

@@ -16,7 +16,7 @@ local allowedDomains = {
}
--- Adds a mod to the global space under specified domain structure
---@param mod table The mod table containing functionality to expose -- TODO: !!!Make a Mod class!!!
---@param mod table The mod table containing functionality to expose -- TODO: !!!Describe a Mod class to EmmyLua!!!
---@param location string Dot-separated path within domain structure (e.g. "Items.Log")
---@param force boolean? Whether to overwrite the target location.
Api.addModToGlobalSpace = function(mod, location, force)