Import
When a new version of the library is built, it can be downloaded and updated in an addon. The following steps describe how to import it for the first time. When updating, focus on steps 2 and 4, by replacing the existing library file and the instantiation table name.
- Create a
lib
directory in the addon root folder, solib
is at the same level as the addon.toc
files - Download
stormwind-library.lua
ORstormwind-library.min.lua
from the most recent release into the folder created above - Update the addon
.toc
file by addinglib\stormwind-library.lua
ORlib\stormwind-library.min.lua
- Now, a library instance must be instantiated with
StormwindLibrary_vx_y_z.new()
wherex_y_z
is the current library version