O'Reilly logo

Beginning Lua with World of Warcraft Addons by Paul Emmerich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required