Skip to content

A library that facilitates object creation and event handling, providing essential infrastructure for addons.

License

Notifications You must be signed in to change notification settings

Eyal-WowHub/Addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Addon

A library that facilitates object creation and event handling, providing essential infrastructure for addons.

Dependencies: LibStub, Contracts

Used By: WowInfo

Example:

-- Main.lua
local addon = LibStub("Addon-1.0"):New(...)

function addon:OnInitialized()
    print("Hello from " .. addon:GetName())
end

-- Foo.lua
local _, addon = ...
local Foo = addon:NewObject("Foo")

Foo:RegisterEvent("PLAYER_LOGIN", function(_, eventName)
    print("Hello from " .. eventName)
end)

About

A library that facilitates object creation and event handling, providing essential infrastructure for addons.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages