Skip to content

Commit

Permalink
API updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Resike committed Nov 3, 2018
1 parent 48b327a commit ba79b08
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 37 deletions.
2 changes: 1 addition & 1 deletion GlobalFinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GlobalFinder(Linter):
r'(?P<message>.+)'
)
defaults = {
'selector': 'source.lua - meta.tag.xml - comment.block.xml, source.lua.wow - meta.tag.xml - comment.block.xml'
'selector': 'source.lua - meta.tag.xml - comment.block.xml'
}

def split_match(self, match):
Expand Down
13 changes: 6 additions & 7 deletions Reference/API Reference/!/API Reference.sublime-completions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,8 @@
{"trigger": "GetSpellCount\t(\"name\")", "contents": "GetSpellCount(\"${1:name}\")$0"},
{"trigger": "GetSpellCritChance\t(school)", "contents": "GetSpellCritChance(${1:school})$0"},
{"trigger": "GetSpellDescription\t(spellID)", "contents": "GetSpellDescription(${1:spellID})$0"},
{"trigger": "GetSpellInfo\t(id)", "contents": "GetSpellInfo(${1:id})$0"},
{"trigger": "GetSpellInfo\t(index, \"bookType\")", "contents": "GetSpellInfo(${1:index}, \"${2:bookType}\")$0"},
{"trigger": "GetSpellInfo\t(\"name\")", "contents": "GetSpellInfo(\"${1:name}\")$0"},
{"trigger": "GetSpellInfo\t(id, [spellRank])", "contents": "GetSpellInfo(${1:id}, ${2:[spellRank]})$0"},
{"trigger": "GetSpellInfo\t(\"name\", [spellRank])", "contents": "GetSpellInfo(\"${1:name}\", ${2:[spellRank]})$0"},
{"trigger": "GetSpellLink\t(id)", "contents": "GetSpellLink(${1:id})$0"},
{"trigger": "GetSpellLink\t(index, \"bookType\")", "contents": "GetSpellLink(${1:index}, \"${2:bookType}\")$0"},
{"trigger": "GetSpellLink\t(\"name\")", "contents": "GetSpellLink(\"${1:name}\")$0"},
Expand Down Expand Up @@ -1168,6 +1167,7 @@
{"trigger": "PlayMusic\t(\"musicfile\")", "contents": "PlayMusic(\"${1:musicfile}\")$0"},
{"trigger": "PlaySound\t(\"sound\", \"soundChannel\")", "contents": "PlaySound(\"${1:sound}\", \"${2:soundChannel}\")$0"},
{"trigger": "PlaySoundFile\t(\"soundFile\", \"soundChannel\")", "contents": "PlaySoundFile(\"${1:soundFile}\", \"${2:soundChannel}\")$0"},
{"trigger": "PostAuction\t(minBid, buyoutPrice, runTime, stackSize, numStacks)", "contents": "StartAuction(${1:minBid}, ${2:buyoutPrice}, ${3:runTime}, ${4:stackSize}, ${5:numStacks})$0"},
{"trigger": "PrevView\t()", "contents": "PrevView()$0"},
{"trigger": "PromoteToAssistant\t(\"name\", [exactMatch])", "contents": "PromoteToAssistant(\"${1:name}\", ${2:[exactMatch]})$0"},
{"trigger": "PromoteToAssistant\t(\"unit\")", "contents": "PromoteToAssistant(\"${1:unit}\")$0"},
Expand Down Expand Up @@ -1702,7 +1702,7 @@
{"trigger": "_GetArenaOpponentSpec\t(oppNumber)", "contents": "${1:specialisationID} = GetArenaOpponentSpec(${2:oppNumber})$0"},
{"trigger": "_GetArtifactProgress\t()", "contents": "${1:base}, ${2:adjusted}, ${3:total_cost} = GetArtifactProgress()$0"},
{"trigger": "_GetAttackPowerForStat\t(statIndex, effectiveStat)", "contents": "${1:attackPower} = GetAttackPowerForStat(${2:statIndex}, ${3:effectiveStat})$0"},
{"trigger": "_GetAuctionItemInfo\t(\"list\", index)", "contents": "${1:name}, ${2:texture}, ${3:count}, ${4:quality}, ${5:canUse}, ${6:level}, ${7:minBid}, ${8:minIncrement}, ${9:buyoutPrice}, ${10:bidAmount}, ${11:highestBidder}, ${12:owner}, ${13:sold} = GetAuctionItemInfo(\"${14:list}\", ${15:index})$0"},
{"trigger": "_GetAuctionItemInfo\t(\"list\", index)", "contents": "${1:name}, ${2:texture}, ${3:count}, ${4:quality}, ${5:canUse}, ${6:level}, ${7:levelColHeader}, ${8:minBid}, ${9:minIncrement}, ${10:buyoutPrice}, ${11:bidAmount}, ${12:highestBidder}, ${13:bidderFullName}, ${14:owner}, ${15:ownerFullName}, ${16:saleStatus}, ${17:itemID}, ${18:hasAllInfo} = GetAuctionItemInfo(\"${14:list}\", ${15:index})$0"},
{"trigger": "_GetAuctionItemLink\t(\"list\", index)", "contents": "${1:link} = GetAuctionItemLink(\"${2:list}\", ${3:index})$0"},
{"trigger": "_GetAuctionItemSubClasses\t(classIndex)", "contents": "${1:...} = GetAuctionItemSubClasses(${2:classIndex})$0"},
{"trigger": "_GetAuctionItemTimeLeft\t(\"list\", index)", "contents": "${1:duration} = GetAuctionItemTimeLeft(\"${2:list}\", ${3:index})$0"},
Expand Down Expand Up @@ -2168,9 +2168,8 @@
{"trigger": "_GetSpellCount\t(\"name\")", "contents": "${1:numCasts} = GetSpellCount(\"${2:name}\")$0"},
{"trigger": "_GetSpellCritChance\t(school)", "contents": "${1:minCrit} = GetSpellCritChance(${2:school})$0"},
{"trigger": "_GetSpellDescription\t(spellID)", "contents": "${1:desc} = GetSpellDescription(${2:spellID})$0"},
{"trigger": "_GetSpellInfo\t(id)", "contents": "${1:name}, ${2:icon}, ${3:powerCost}, ${4:isFunnel}, ${5:powerType}, ${6:castingTime}, ${7:minRange}, ${8:maxRange} = GetSpellInfo(${9:id})$0"},
{"trigger": "_GetSpellInfo\t(index, \"bookType\")", "contents": "${1:name}, ${2:icon}, ${3:powerCost}, ${4:isFunnel}, ${5:powerType}, ${6:castingTime}, ${7:minRange}, ${8:maxRange} = GetSpellInfo(${9:index}, \"${10:bookType}\")$0"},
{"trigger": "_GetSpellInfo\t(\"name\")", "contents": "${1:name}, ${2:icon}, ${3:powerCost}, ${4:isFunnel}, ${5:powerType}, ${6:castingTime}, ${7:minRange}, ${8:maxRange} = GetSpellInfo(\"${9:name}\")$0"},
{"trigger": "_GetSpellInfo\t(id, [spellRank])", "contents": "${1:name}, ${2:rank}, ${3:icon}, ${4:castTime}, ${5:minRange}, ${6:maxRange}, ${7:spellID} = GetSpellInfo(${8:id}, ${9:[spellRank]})$0"},
{"trigger": "_GetSpellInfo\t(\"name\", [spellRank])", "contents": "${1:name}, ${2:rank}, ${3:icon}, ${4:castTime}, ${5:minRange}, ${6:maxRange}, ${7:spellID} = GetSpellInfo(\"${8:name}\", ${9:[spellRank]})$0"},
{"trigger": "_GetSpellLink\t(id)", "contents": "${1:link}, ${2:tradeLink} = GetSpellLink(${3:id})$0"},
{"trigger": "_GetSpellLink\t(index, \"bookType\")", "contents": "${1:link}, ${2:tradeLink} = GetSpellLink(${3:index}, \"${4:bookType}\")$0"},
{"trigger": "_GetSpellLink\t(\"name\")", "contents": "${1:link}, ${2:tradeLink} = GetSpellLink(\"${3:name}\")$0"},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[GetSpellInfo(${1:id})$0]]></content>
<content><![CDATA[GetSpellInfo(${1:id}, ${2:[spellRank]})$0]]></content>
<tabTrigger>GetSpellInfo</tabTrigger>
<description>(id)</description>
<description>(id, [spellRank])</description>
<scope>source.lua - entity - punctuation - keyword - string - meta.function.arguments.lua - meta.punctuation.lua - meta.method-call.lua</scope>
</snippet>
6 changes: 0 additions & 6 deletions Reference/API Reference/GetSpellInfo(name).sublime-snippet

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[GetSpellInfo(${1:index}, "${2:bookType}")$0]]></content>
<content><![CDATA[GetSpellInfo("${1:name}", ${2:[spellRank]})$0]]></content>
<tabTrigger>GetSpellInfo</tabTrigger>
<description>(index, "bookType")</description>
<description>("name", [spellRank])</description>
<scope>source.lua - entity - punctuation - keyword - string - meta.function.arguments.lua - meta.punctuation.lua - meta.method-call.lua</scope>
</snippet>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[PostAuction(${1:minBid}, ${2:buyoutPrice}, ${3:runTime}, ${4:stackSize}, ${5:numStacks})$0]]></content>
<tabTrigger>PostAuction</tabTrigger>
<description>(minBid, buyoutPrice, runTime, stackSize, numStacks)</description>
<scope>source.lua - entity - punctuation - keyword - string - meta.function.arguments.lua - meta.punctuation.lua - meta.method-call.lua</scope>
</snippet>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<snippet>
<content><![CDATA[${1:name}, ${2:texture}, ${3:count}, ${4:quality}, ${5:canUse}, ${6:level}, ${7:minBid}, ${8:minIncrement}, ${9:buyoutPrice}, ${10:bidAmount}, ${11:highestBidder}, ${12:owner}, ${13:sold} = GetAuctionItemInfo("${14:list}", ${15:index})$0]]></content>
<content><![CDATA[${1:name}, ${2:texture}, ${3:count}, ${4:quality}, ${5:canUse}, ${6:level}, ${7:levelColHeader}, ${8:minBid}, ${9:minIncrement}, ${10:buyoutPrice}, ${11:bidAmount}, ${12:highestBidder}, ${13:bidderFullName}, ${14:owner}, ${15:ownerFullName}, ${16:saleStatus}, ${17:itemID}, ${18:hasAllInfo} = GetAuctionItemInfo("${14:list}", ${15:index})$0]]></content>
<tabTrigger>_GetAuctionItemInfo</tabTrigger>
<description>("list", index)</description>
<scope>source.lua - entity - punctuation - keyword - string - meta.function.arguments.lua - meta.punctuation.lua - meta.method-call.lua</scope>
Expand Down
6 changes: 0 additions & 6 deletions Reference/API Reference/_GetSpellInfo(id).sublime-snippet

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[${1:name}, ${2:rank}, ${3:icon}, ${4:castTime}, ${5:minRange}, ${6:maxRange}, ${7:spellID} = GetSpellInfo(${8:id}, ${9:[spellRank]})$0]]></content>
<tabTrigger>_GetSpellInfo</tabTrigger>
<description>(id, [spellRank])</description>
<scope>source.lua - entity - punctuation - keyword - string - meta.function.arguments.lua - meta.punctuation.lua - meta.method-call.lua</scope>
</snippet>

This file was deleted.

6 changes: 0 additions & 6 deletions Reference/API Reference/_GetSpellInfo(name).sublime-snippet

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[${1:name}, ${2:rank}, ${3:icon}, ${4:castTime}, ${5:minRange}, ${6:maxRange}, ${7:spellID} = GetSpellInfo("${8:name}", ${9:[spellRank]})$0]]></content>
<tabTrigger>_GetSpellInfo</tabTrigger>
<description>("name", [spellRank])</description>
<scope>source.lua - entity - punctuation - keyword - string - meta.function.arguments.lua - meta.punctuation.lua - meta.method-call.lua</scope>
</snippet>

0 comments on commit ba79b08

Please sign in to comment.