Thread: ZO_Object
View Single Post
07/02/15, 11:34 AM   #4
kerb9729
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 56
Originally Posted by merlight View Post
It provides the basis for class inheritance. http://esodata.uesp.net/current/src/...bject.lua.html
I guess one of the drawbacks in learning from existing addon code is that I can't always be sure that what I'm looking at is the "right" way of doing things.

I wonder if someone would be willing to show me an example of the correct way to use ZO_Object?

Do I create a template using ZO_Object.SubClass and then instantiate an object from it using
myobject = ZO_Object.New(templateIcreated)?

That seems like it should be correct, but I don't see it done that way (in the addons I've looked at thus far)?
  Reply With Quote