mirror of
https://github.com/araxiaonline/wow-eluna-ts-module.git
synced 2026-06-13 02:42:22 -04:00
* Updated Map instance events to now accept MapId also that were added to base declarations * Added new enum types like zoneId * New snippets that can be installed in vscode at a project level using ets cli * Added creature, gossip, gameobject, server register events * fixed issue with Server Packets event as it does not require an entry but was set as needing one
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
{
|
|
"Battleground Start": {
|
|
"prefix": "bg_start",
|
|
"body": [
|
|
"const $1: bg_event_on_start = (event: number, bg: BattleGround, bgId: BattleGroundTypeId, instanceId: number) => {",
|
|
"\t// Implementation",
|
|
"};",
|
|
"",
|
|
"// Register",
|
|
"RegisterBGEvent(BGEvents.BG_EVENT_ON_START, (...args) => $1(...args));"
|
|
],
|
|
"description": "Battleground Event on Start",
|
|
"scope": "typescript"
|
|
},
|
|
"Battleground End": {
|
|
"prefix": "bg_end",
|
|
"body": [
|
|
"const $1: bg_event_on_end = (event: number, bg: BattleGround, bgId: BattleGroundTypeId, instanceId: number, winner: Team) => {",
|
|
"\t// Implementation",
|
|
"};",
|
|
"",
|
|
"// Register",
|
|
"RegisterBGEvent(BGEvents.BG_EVENT_ON_END, (...args) => $1(...args));"
|
|
],
|
|
"description": "Battleground Event on End",
|
|
"scope": "typescript"
|
|
},
|
|
"Battleground Create": {
|
|
"prefix": "bg_create",
|
|
"body": [
|
|
"const $1: bg_event_on_create = (event: number, bg: BattleGround, bgId: BattleGroundTypeId, instanceId: number) => {",
|
|
"\t// Implementation",
|
|
"};",
|
|
"",
|
|
"// Register",
|
|
"RegisterBGEvent(BGEvents.BG_EVENT_ON_CREATE, (...args) => $1(...args));"
|
|
],
|
|
"description": "Battleground Event on Create",
|
|
"scope": "typescript"
|
|
},
|
|
"Battleground Pre-Destroy": {
|
|
"prefix": "bg_pre_destroy",
|
|
"body": [
|
|
"const $1: bg_event_on_pre_destroy = (event: number, bg: BattleGround, bgId: BattleGroundTypeId, instanceId: number) => {",
|
|
"\t// Implementation",
|
|
"};",
|
|
"",
|
|
"// Register",
|
|
"RegisterBGEvent(BGEvents.BG_EVENT_ON_PRE_DESTROY, (...args) => $1(...args));"
|
|
],
|
|
"description": "Battleground Event on Pre-Destroy",
|
|
"scope": "typescript"
|
|
}
|
|
}
|
|
|