-
Notifications
You must be signed in to change notification settings - Fork 2
Module: Compat
Andre Louis Issa edited this page May 25, 2024
·
13 revisions
This module contains a namespace of deprecated or refactored interfaces. In ModUtil 3, these have been removed
The members of this module are accessible from the ModUtil.Compat table directly, but also from the ModUtil table as well. This way old mods using this outdated interface will not immediately break in most cases.
RegisterMod |
modName (string) ~ parent (nil|table)
|
mod (Mod)
|
ValueString |
object
|
repr (string)
|
KeyString |
object
|
repr (string)
|
TableKeysString |
object (table)
|
repr (string)
|
ToShallowString |
object
|
repr (string)
|
ToDeepString |
object
|
repr (string)
|
ToDeepNoNamespacesString |
object
|
repr (string)
|
ToDeepNamespacesString |
object
|
repr (string)
|
JoinStrings |
sep (string), ...(string)
|
out (string)
|
ChunkText |
text (string), chunkSize (+Int), maxChunks (+Int)
|
chunks (Array{string})
|
ReplaceTable |
target (table), data (table)
|
|
IsUnKeyed |
in (table)
|
keyed (boolean)
|
PrintToFile | ...(string) | |
DebugPrint | ...(string) | |
PrintTraceback |
level (+Int|nil)
|
|
PrintNamespaces |
level (+Int|nil)
|
|
PrintVariables |
level (+Int|nil)
|
|
Slice |
state (Array), start (Int|nil), stop (Int|nil), step (Int|nil)
|
slice (Array)
|
NewTable |
parent (table), key (~nil)
|
tbl (table)
|
SafeGet |
base (table), index (Array)
|
result
|
SafeSet |
base (table), index (Array), value
|
success (boolean)
|
MapNilTable |
in (table), nil (table)
|
in (table)
|
MapSetTable |
in (table), set (table)
|
in (table)
|
JoinIndexArrays | ...(Array) |
out (Array)
|
PathToIndexArray |
path (Path)
|
index (Array)
|
PathGet |
path (Path)
|
value
|
PathSet |
path (Path), value
|
success (boolean)
|
WrapFunction |
base (table), index (Array), wrap ((base ,...)->(...)), mod (Mod)
|
success (boolean)
|
RewrapFunction |
base (table), index (Array)
|
success (boolean)
|
UnwrapFunction |
base (table), index (Array)
|
success (boolean)
|
WrapBaseFunction |
path (Path), wrap ((base , ...)->(...)), mod (Mod)
|
success (boolean)
|
RewrapBaseFunction |
path (Path)
|
success (boolean)
|
UnwrapBaseFunction |
path (Path)
|
success (boolean)
|
BaseOverride |
path (Path), value
|
success (boolean)
|
GetOriginalValue |
base (table), index (Array)
|
value
|
GetOriginalBaseValue |
path (Path)
|
value
|
RawInterface |
object (table)
|
raw (*table)
|
MapVars |
map ((in)->(out)), ...
|
... |
StackedUpValues |
func ((...)->(...)|+Int|nil)
|
ups (*table)
|
StackedLocals |
level (+Int|nil)
|
locals (*table)
|
LocalValues |
level (+Int|nil)
|
locals (*table)
|
LocalNames |
level (+Int|nil)
|
locals (*table)
|
GetBaseBottomUpValues |
path (Path)
|
ups (*table)
|
MapTable |
map ((in )->(out )), data (table)
|
mapped (table)
|
WrapWithinFunction |
base (table), index (Array), env (Array), wrap ((base , ...)->(...)), mod (Mod)
|
success (boolean)
|
WrapBaseWithinFunction |
path (Path), env (Path), wrap ((base , ...)->(...)), mod (Mod)
|
success (boolean)
|
BaseOverrideWithinFunction |
path (Path), env (Path), value , mod (Mod)
|
success (boolean)
|