initial commit
This commit is contained in:
commit
69ff0e3c30
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,5 @@
|
||||||
|
## v4.0.9 Changes
|
||||||
|
|
||||||
|
* [Retail] Updated TOC for patch 9.0.1
|
||||||
|
|
||||||
|
[Known Issues](http://support.tradeskillmaster.com/display/KB/TSM4+Currently+Known+Issues)
|
|
@ -0,0 +1,12 @@
|
||||||
|
All rights are reserved unless explicitly stated below. The "license holder" is the manager of this project, Sapu94 (sapu94@gmail.com).
|
||||||
|
|
||||||
|
## Exceptions:
|
||||||
|
|
||||||
|
1. The use of this addon in accordance with all applicable terms set by Blizzard Entertainment for addon use and game play is permitted.
|
||||||
|
2. Modifications for personal use or submission to license holder are permitted. Modified versions of the works, derivative works, modified sections of the works, and instructions for how to modify the works are all prohibited unless the express consent of the license holder is granted.
|
||||||
|
|
||||||
|
## Comments:
|
||||||
|
|
||||||
|
1. Permission to use sections of the works in your own work is very likely to be granted upon contacting the license holder.
|
||||||
|
2. The right to distribute the works is reserved by the license holder. In no way or form may a person other than the license holder distribute the works.
|
||||||
|
3. Please contact the license holder if you have any questions at all regarding this license at the following email address: sapu94@gmail.com
|
|
@ -0,0 +1,31 @@
|
||||||
|
-- ------------------------------------------------------------------------------ --
|
||||||
|
-- TradeSkillMaster_AppHelper --
|
||||||
|
-- https://tradeskillmaster.com --
|
||||||
|
-- All Rights Reserved* - Detailed license information included with addon. --
|
||||||
|
-- ------------------------------------------------------------------------------ --
|
||||||
|
|
||||||
|
local _, TSM = ...
|
||||||
|
TSMAPI.AppHelper = {}
|
||||||
|
local private = { data = {} }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function TSM.LoadData(tag, ...)
|
||||||
|
private.data[tag] = private.data[tag] or {}
|
||||||
|
tinsert(private.data[tag], {...})
|
||||||
|
end
|
||||||
|
|
||||||
|
function TSMAPI.AppHelper:FetchData(tag)
|
||||||
|
local data = private.data[tag]
|
||||||
|
private.data[tag] = nil
|
||||||
|
return data
|
||||||
|
end
|
||||||
|
|
||||||
|
function TSMAPI.AppHelper:IsCurrentRealm(realm)
|
||||||
|
realm = gsub(realm, "\226", "'")
|
||||||
|
local currentRealmName = gsub(GetRealmName(), "\226", "'")
|
||||||
|
if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then
|
||||||
|
currentRealmName = currentRealmName.."-"..UnitFactionGroup("player")
|
||||||
|
end
|
||||||
|
return strlower(realm) == strlower(currentRealmName)
|
||||||
|
end
|
|
@ -0,0 +1,10 @@
|
||||||
|
## Interface: 90001
|
||||||
|
## Title: |cff00ff00TradeSkillMaster_AppHelper|r
|
||||||
|
## Notes: Acts as a connection between the TSM addon and app.
|
||||||
|
## Author: TSM Team
|
||||||
|
## Version: v4.0.9
|
||||||
|
## SavedVariables: TradeSkillMaster_AppHelperDB
|
||||||
|
## Dependency: TradeSkillMaster
|
||||||
|
|
||||||
|
TradeSkillMaster_AppHelper.lua
|
||||||
|
AppData.lua
|
Loading…
Reference in New Issue