comparison LibModuleDBShare-1.0/LibModuleDBShare-1.0.lua @ 5:4366f51a7069

added .docmeta file. added luadoc to LibModuleDBShare-1.0.lua. completed initial function stubs. back to auto change log.
author Thnan <>
date Sat, 09 Mar 2013 02:26:13 -0500
parents 6ea3069a629f
children 35159f132552
comparison
equal deleted inserted replaced
4:6ea3069a629f 5:4366f51a7069
1 --- **LibModuleDBShare-1.0**\\
2 -- A description will eventually be here.
3 --
4 -- @usage
5 -- Also coming soon.
6 -- @class file
7 -- @name LibModuleDBShare-1.0.lua
1 local MAJOR, MINOR = "LibModuleDBShare-1.0", 1 8 local MAJOR, MINOR = "LibModuleDBShare-1.0", 1
2 local LibModuleDBShare, oldminor = LibStub:NewLibrary(MAJOR, MINOR) 9 local LibModuleDBShare, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
3 10
4 if not LibModuleDBShare then return end -- No upgrade needed 11 if not LibModuleDBShare then return end -- No upgrade needed
5 12
6 LibModuleDBShare.groups = LibModuleDBShare.groups or {}; 13 LibModuleDBShare.groups = LibModuleDBShare.groups or {};
7 14
15 local DBGroup = {};
16
17 --- Creates a new DB group.
18 -- @param groupName The name of the new DB group.
19 -- @param usesDualSpec True if this group should use LibDualSpec, false otherwise.
20 -- @usage
21 -- local myAddonDBGroup = LibStub("LibModuleDBShare-1.0"):NewGroup("MyAddonGroupName", true)
22 -- @return the new DB group object
8 function LibModuleDBShare:NewGroup(groupName, usesDualSpec) 23 function LibModuleDBShare:NewGroup(groupName, usesDualSpec)
9 24
10 end 25 end
11 26
12 function LibModuleDBShare:AddModule(groupName, db) 27 --- Retrieves an existing DB group.
28 -- @param groupName The name of the DB group to retrieve.
29 -- @usage
30 -- local myAddonDBGroup = LibStub("LibModuleDBShare-1.0"):GetGroup("MyAddonGroupName")
31 -- @return the DB group object, or nil if not found
32 function LibModuleDBShare:GetGroup(groupName)
13 33
14 end 34 end
35
36 --- Adds a database to the group.
37 -- @param db The name of the new DB group.
38 -- @usage
39 -- myAddonDBGroup:AddDB(MyAddon.db)
40 function DBGroup:AddDB(db)
41
42 end