File Command.lua

Functions

C:Disable () Disable AddOn.
C:DisableDebug () Disable debugging.
C:Enable () Enable AddOn.
C:EnableDebug () Enable debugging.
C:Init () Initialize Command.
C:LoadSavedVars () Load the saved variables.
C:SetDebug (enabled) Control debugging state.
C:SetEnabled (enabled) Control AddOn state.
C:Toggle () Toggle AddOn on and off.
C:ToggleDebug () Toggle debugging.

Tables

Command Table containing all Command methods.


Functions

C:Disable ()
Disable AddOn.
C:DisableDebug ()
Disable debugging.
C:Enable ()
Enable AddOn.
C:EnableDebug ()
Enable debugging.
C:Init ()
Initialize Command.
C:LoadSavedVars ()
Load the saved variables. Also call Init() on modules that need it.
C:SetDebug (enabled)
Control debugging state.

Parameters:

  • enabled: Boolean indicating enabled or disabled state.
C:SetEnabled (enabled)
Control AddOn state.

Parameters:

  • enabled: Boolean indicating enabled or disabled state.
C:Toggle ()
Toggle AddOn on and off.
C:ToggleDebug ()
Toggle debugging.

Tables

Command
Table containing all Command methods. This is referenced "C" in Command.lua

Fields:

  • Name: AddOn name.
  • Version: AddOn version.
  • VarVersion: SavedVariables version.
  • Enabled: Enabled state.
  • Global: Contains the saved variables.
  • Settings: Contains settings specific to Command.
  • Events: Contains all registered event handlers.

Valid XHTML 1.0!