-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored part that dependent on localization specific names
also added definitions to make easier write and read code
- Loading branch information
Showing
4 changed files
with
160 additions
and
83 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
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,16 @@ | ||
---@class AutoGearAddon | ||
---@field public Localization table<string, string> Table used for localization. | ||
|
||
---Returns info for an item | ||
---@param itemId string|number | ||
---@return string, string, number, number, number, string, string, number, string, string, number | ||
function GetItemInfo(itemId) end | ||
|
||
---Returns info for the current client build. | ||
--- | ||
---version, build, date, tocversion | ||
--- | ||
---Example: | ||
---```/dump GetBuildInfo() -- "9.0.2", "36665", "Nov 17 2020", 90002``` | ||
---@return string,string,string,number | ||
function GetBuildInfo() 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
---@type AutoGearAddon | ||
local _, T = ...; | ||
T.Localization = {} | ||
local function defaultFunc(_, key) | ||
|
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