diff --git a/mods/API/System/init.lua b/mods/API/System/init.lua index eb9aa6c..e7472e3 100644 --- a/mods/API/System/init.lua +++ b/mods/API/System/init.lua @@ -1,9 +1,24 @@ Api = {} + +---@alias Domen table Global table for accessing public classes provided by mods. +---@alias Subdomen table + +---@type Domen Core = {} + +---@type Domen Environment = {} + +---@type Domen Game = {} + +---@type Subdomen Game.Items = {} + +---@type Subdomen Game.Mobs = {} + +---@type Subdomen Game.Structures = {} Ui = {} @@ -16,7 +31,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: !!!Describe a Mod class to EmmyLua!!! +---@param mod Mod The mod table containing functionality to expose ---@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)