CheckParamsValidity(Table tbl, Table schema)
tbl which contains parameters you want to check.
schema contains what you expect the parameters to be.
schema should have a
func_name string value which is where the function was called from (So user knows where they wrote wrong parameters). Then, a
params table which contains expectancy from the parameters in
tbl (Ordered by indices), each table with these values:
type for desired type and
allow_nil to allow nullable parameters. Example
CheckParamValidity(String func_name, Number vari, Any var, String desired_type, Boolean allow_nil)
CheckParamsValidity uses to check the parameters.func_name
being the function this is called from,vari
is the index of the variable,var
is the variable value,desired_type
is the type this variable should be andallow_nil` (which defaults to false) to allow the variable to be null
GetSubValues(Table tbl, String key)
Returns a table of sub values that correspond to the key
Returns the object value from a string representation of the value. For example: "Vector3(0,0,0)" will return a vector3 object. This function supports: Vector3, Rotation, Color and callback, ClassClbk, SimpleClbk, etc
StringToValue(String str, Table global_tbl, Boolean silent)
Returns a value from a string.
str can be like "self.value" self being
global_tbl. It can also do something like self.tbl.x.y.z
str is the string that needs conversion,
global_tbl can be left out which will default to _G or set as some class.
silent decides whether to log when an error has hit
Returns a string version of the passed str which is encoded for urls
Searches a mod (All mods including these not in frameworks) with the name
name and returns its ModCore class if it finds it; returns null if not found. If you know which framework the mod resides in, please use the framework functions
Returns a boolean determining if the mod exists in the game
Returns a boolean determining if the mod exists and is loaded (not disabled)
Returns a mod with a path that matches
path. For example the mod path is "mods/BeardLib". We pass the argument "mods/BeardLib/Hooks" to it and the function will return BeardLib because
path matches with BeardLib's path. This is used to find mods even if the path is a folder inside of the mod