Module:ServicesData

From Against the Storm Official Wiki
Revision as of 22:55, 10 November 2024 by Aeredor (talk | contribs) (Overhauling into a small utility method for Services information, since there isn't a special data model for services anymore.)

Documentation for this module may be created at Module:ServicesData/doc

---@module ServicesData
local ServicesData = {}



--region Public methods

---@public
---Gets the icon filename associated with the specified service.
---
---@param name string service
---@return string icon filename
function ServicesData.getIcon(name)
    return "Icon_Need_" .. name .. ".png"
end

---@public
---Gets the ID for the specified service
---
---@param name string service
---@return string ID
function ServicesData.getID(name)
    --Yep, IDs are just names right now.
    return name
end

--endregion

return ServicesData