Skip to content

Module: Main

Andre Issa edited this page Sep 2, 2021 · 20 revisions

Members accessible via the ModUtil table

This module relates to operations that rely on being performed after "Content/Scripts/Main.lua" finishes.

Mod.Register modName(string) ~ parent(nil|table) mod(Mod)
Creates a new table mod with ModUtil.Mod as its fallback metamethod, and assigns it to the field [modName] in the parent (or global) table, and associates the path to the table in ModUtil.Identifiers
Entangled.ModData value(table) proxy(*table)
Returns a proxy for the value such that any operations on the proxy preserve the save-safety (in Hades) of the value table
Mod.Data mod(Mod) proxy(*table)
Retrieves a proxy for the saved data table (value in the ModData global table) corresponding to the mod (creates the data table (and ModData) if it doesn't yet exist) via ModUtil.Entangled.ModData
LoadOnce func((...)->(...))
CancelLoadOnce func((...)->(...))
Clone this wiki locally