C H A P T E R  10

image

Using Libraries

A library is an addon that provides a set of functions that can be used by other addons. The addon SimpleTimingLib we wrote in Chapter 4 is a library. But there are a few issues involved when working with libraries. Let's assume you wrote an addon that depends on that library and you want to publish it. You can either include the library in your zip file or tell the users to install the library themselves.

The first solution, including the library, exposes its weakness when a user who already has this library tries to install your package. He will overwrite the version of the library he already had with your ...

Get Beginning Lua with World of Warcraft Addons now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.