diff --git a/mods/API/System/init.lua b/mods/API/System/init.lua index e7472e3..8d82e63 100644 --- a/mods/API/System/init.lua +++ b/mods/API/System/init.lua @@ -30,6 +30,17 @@ local allowedDomains = { Ui = true } + +--- Inherits a child class from a parent class +---@param ParentClass table +---@param ChildClass table? +---@return table +Api.getClassExtended = function(ParentClass, ChildClass) + local ChildClass = setmetatable(ChildClass or {}, { __index = ParentClass }) + + return ChildClass +end + --- Adds a mod to the global space under specified domain structure ---@param mod Mod The mod table containing functionality to expose ---@param location string Dot-separated path within domain structure (e.g. "Items.Log")