Skip to content

Commit

Permalink
Wow Version and misc updates
Browse files Browse the repository at this point in the history
A journey of a thousand miles begins with a single step.
  • Loading branch information
opussf committed Aug 1, 2023
1 parent 1130e60 commit 8e41ca4
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 27 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/normal_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,39 @@ jobs:
# The type of runner that the job will run on
runs-on:
- ubuntu-latest
#- windows-latest
#- macos-latest
permissions:
checks: write
pull-requests: write

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# fetch-depth:0 is needed to get tags too
# normal builds do not need history.
# https://github.com/actions/checkout/tags
- uses: actions/checkout@v2
# with:
# fetch-depth: 0
- uses: actions/checkout@v3.5.0
with:
fetch-depth: 0

# https://github.com/actions/setup-java/tags
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK
uses: actions/setup-java@v3.11.0
with:
java-version: 1.8
distribution: 'temurin'
java-version: 17

# https://github.com/leafo/gh-actions-lua/tags
- name: Set up Lua
uses: leafo/gh-actions-lua@v8
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.3.5"

# Runs a single command using the runners shell
- name: Build with ant
run: ant package

# https://github.com/marketplace/actions/test-reporter
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
- name: Publish Unit Test Results
uses: EnricoMi/[email protected]
if: always()
with:
name: Ineed Tests # Name of the check run which will be created
path: target/reports/testOut.xml # Path to test results
reporter: java-junit # Format of test results
files: target/reports/*.xml
17 changes: 10 additions & 7 deletions .github/workflows/ontag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,23 @@ jobs:
build:
runs-on:
- ubuntu-latest
permissions:
contents: write

steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3.5.0
with:
fetch-depth: 0

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK
uses: actions/setup-java@v3.11.0
with:
java-version: 1.8
distribution: 'temurin'
java-version: 17

- name: Set up Lua
uses: leafo/gh-actions-lua@v8
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.3.5"

Expand All @@ -33,7 +36,7 @@ jobs:

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
Expand All @@ -44,7 +47,7 @@ jobs:
prerelease: false

- name: Upload release binaries
uses: alexellis/upload-assets@0.2.3
uses: alexellis/upload-assets@0.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
Expand Down
2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
INTERFACE=100005
INTERFACE=100105
ADDONLOC=/Applications/World of Warcraft/_retail_/Interface/Addons
53 changes: 50 additions & 3 deletions test/wowStubs.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-----------------------------------------
-- Author : Opussf
-- Date : January 2 2023
-- Revision: 9.0.3-5-g5f3a636-100002
-- Date : May 20 2023
-- Revision: 9.0.4-4-g4dbc6c4
-----------------------------------------
-- These are functions from wow that have been needed by addons so far
-- Not a complete list of the functions.
Expand Down Expand Up @@ -53,10 +53,12 @@ onCursor = {}
globals = {}
accountExpansionLevel = 4 -- 0 to 5
-- registeredPrefixes - populated by the RegisterAddonMessagePrefix( prefix )
unitSpeeds = { ["player"] = 0 }

myStatistics = {
[60] = 42 -- 60 = deaths
}
myLocale = "enUS"

registeredPrefixes = {}

Expand Down Expand Up @@ -415,9 +417,24 @@ FrameGameTooltip = {
_G[frameName.."TextLeft4"] = CreateFontString(frameName.."TextLeft4")
end,
}
-- None = 0
-- Warrior = 1
-- Paladin = 2
-- Hunter = 3
-- Rogue = 4
-- Priest = 5
-- DeathKnight = 6
-- Shaman = 7
-- Mage = 8
-- Warlock = 9
-- Monk = 10
-- Druid = 11
-- Demon Hunter = 12
Units = {
["player"] = {
["class"] = "Warlock",
["classCAPS"] = "WARLOCK",
["classIndex"] = 9,
["faction"] = {"Alliance", "Alliance"},
["name"] = "testPlayer",
["race"] = "Human",
Expand All @@ -429,6 +446,8 @@ Units = {
},
["sameRealmUnit"] = {
["class"] = "Warrior",
["classCAPS"] = "WARRIOR",
["classIndex"] = 1,
["faction"] = {"Alliance", "Alliance"},
["name"] = "sameRealmPlayer",
["race"] = "Gnome",
Expand All @@ -438,6 +457,8 @@ Units = {
},
["coalescedRealmUnit"] = {
["class"] = "Monk",
["classCAPS"] = "MONK",
["classIndex"] = 10,
["faction"] = {"Alliance", "Alliance"},
["name"] = "coalescedUnit",
["race"] = "Pandarian",
Expand All @@ -446,6 +467,8 @@ Units = {
},
["connectedRealmUnit"] = {
["class"] = "Mage",
["classCAPS"] = "MAGE",
["classIndex"] = 8,
["faction"] = {"Alliance", "Alliance"},
["name"] = "connectedUnit",
["realm"] = "connectedRealm",
Expand Down Expand Up @@ -794,6 +817,7 @@ end


C_Container = {}
C_Container.SortBagsRightToLeft = false -- this is normal
function C_Container.GetContainerItemInfo( bagId, slotId )
end
function C_Container.GetContainerItemLink( bagId, slotId )
Expand Down Expand Up @@ -824,6 +848,9 @@ function C_Container.GetContainerNumSlots( bagId )
return 0
end
end
function C_Container.GetSortBagsRightToLeft()
return C_Container.SortBagsRightToLeft
end
function C_Container.UseContainerItem( bagId, slotId )
end
function GetEquipmentSetItemIDs( setName )
Expand Down Expand Up @@ -913,6 +940,9 @@ function GetItemInfo( itemIn )
return Items[itemID].name, Items[itemID].link
end
end
function GetLocale()
return myLocale
end
function GetMastery()
return 21.3572
end
Expand Down Expand Up @@ -1153,6 +1183,11 @@ function GetUnitName( lookupStr )
return myParty.roster[partyIndex]
end
end
function GetUnitSpeed( lookupStr )
lookupStr = string.lower( lookupStr )

return (unitSpeeds[lookupStr])
end
--[[
function HasNewMail()
return true
Expand Down Expand Up @@ -1196,6 +1231,10 @@ function IsInRaid()
-- myParty = { ["group"] = nil, ["raid"] = nil } -- set one of these to true to reflect being in group or raid.
return ( myParty["raid"] and 1 or nil )
end
function IsFlying()
end
function IsMounted()
end
function GetCursorInfo()
end
function GetInstanceInfo()
Expand Down Expand Up @@ -1431,7 +1470,7 @@ function UnitAura( unit, index, filter )
end
end
function UnitClass( who )
return Units[who].class
return Units[who].class, Units[who].classCAPS, Units[who].classIndex
end
function UnitGUID( who )
return "playerGUID"
Expand Down Expand Up @@ -1615,6 +1654,14 @@ function C_CurrencyInfo.GetCurrencyLink( id )
end
end

Enum = {}
Enum.TooltipDataType = {}
Enum.TooltipDataType.Item = 0

TooltipDataProcessor = {}
function TooltipDataProcessor.AddTooltipPostCall()
end

-----------------------------------------
-- TOC functions
addonData = {}
Expand Down

0 comments on commit 8e41ca4

Please sign in to comment.