Vendetta/API/set class

From Quasar-RCE
Revision as of 15:36, 3 March 2025 by Wikiadmin (talk | contribs) (added set_class)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Definition

lib.set_class (mod_id, mod_version, mod_class) :: nil

Description

saves the mod's class table so other mods may access it

Arguments

  1. string mod_id: the mod who's class is to be stored
  2. string mod_version: the version of the mod who's class is to be stored
  3. table mod_class: the table containing the mod's public functions and variables

Returns

  1. nil

Other notes

  • Added in LME 2.x (Neoloader indev)
  • this function fails if the mod isn't loaded or has been locked. if unlocked, the class is replaced, not added to.