-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,8 @@ core\hooks.lua | |
debug\debug.lua | ||
debug\frames.lua | ||
|
||
data\items.lua | ||
|
||
frames\section.lua | ||
frames\bag.lua | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local addonName = ... | ||
|
||
---@class BetterBags: AceAddon | ||
local addon = LibStub('AceAddon-3.0'):GetAddon(addonName) | ||
|
||
---@class Items: AceModule | ||
local items = addon:NewModule('Items') | ||
|
||
---@class Item A single item a player can interact with. | ||
local itemProto = {} | ||
|
||
-- Create will create a new item and return it. | ||
---@return Item | ||
function items:Create() | ||
---@class Item | ||
local item = setmetatable({}, { __index = itemProto }) | ||
return item | ||
end | ||
|
||
function items:OnEnable() | ||
--TODO(lobato): Load all items from the inventory. | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters