View Single Post
12/21/14, 06:22 AM   #23
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by circonian View Post
I'm glad you mentioned that! Actually..I never used one of those namespaces before. I was going to come back and look at it later, to try and figure out how it worked, after reading the other posts. But I just forgot about it.

One of Garkins examples:
Lua Code:
  1. self.savedVars = ZO_SavedVars:New("ZO_Ingame_SavedVariables", 1, "Provisioner", defaults)

So how would I use it? I'm guessing all I need to do is just use a unique namespace? So just something like:
Lua Code:
  1. self.savedVars = ZO_SavedVars:New("ZO_Ingame_SavedVariables", 1, "LibNeed4ResearchVars", MyDefaultVarTable)
and...I'm guessing thats all there is to it?

What about the version number? If I changed the version number would it wipe out ALL of ZO_Ingame_SavedVariables? Or just MY namespace?
- Yes, you need just unique namespace.
- If you increase version number, it will reset to defaults just your namespace. Nothing else.
  Reply With Quote