Skip to content

Commit

Permalink
Extended Flight Path Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kaytotes committed Oct 13, 2024
1 parent 1c682d4 commit 01dbb40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tswow-core/Private/TSEventsLua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ void TSLua::load_events(sol::state& state)
LUA_HANDLE(player_events, PlayerEvents, OnMovieComplete);
LUA_HANDLE(player_events, PlayerEvents, OnPlayerRepop);
LUA_HANDLE(player_events, PlayerEvents, OnSendMail);
LUA_HANDLE(player_events, PlayerEvents, OnFlightPathMount);
LUA_HANDLE(player_events, PlayerEvents, OnActivateTaxiPathEarly);
LUA_HANDLE(player_events, PlayerEvents, OnSendDoFlight);
LUA_HANDLE(player_events, PlayerEvents, OnGossipSelect);
LUA_HANDLE(player_events, PlayerEvents, OnGossipSelectCode);
LUA_HANDLE(player_events, PlayerEvents, OnGenerateItemLoot);
Expand Down
3 changes: 2 additions & 1 deletion tswow-core/Public/TSEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ struct TSEvents
EVENT(OnPlayerRepop, TSPlayer)
EVENT(OnSendMail, TSPlayer, TSMailDraft, TSMutableNumber<uint32>)

EVENT(OnFlightPathMount, TSPlayer, TSMutableNumber<uint32>, TSMutable<bool, bool>)
EVENT(OnActivateTaxiPathEarly, TSPlayer, TSMutable<bool, bool>)
EVENT(OnSendDoFlight, TSPlayer, TSNumber<uint32>, TSMutableNumber<uint32>, TSMutable<bool, bool>)

EVENT(OnGenerateItemLoot, TSPlayer, TSItem, TSLoot, TSNumber<uint32>)
EVENT(OnLootCorpse, TSPlayer, TSCorpse)
Expand Down
3 changes: 2 additions & 1 deletion tswow-core/Public/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8108,7 +8108,8 @@ declare namespace _hidden {
OnMovieComplete(callback: (player : TSPlayer,movieId : uint32)=>void);
OnPlayerRepop(callback: (player : TSPlayer)=>void);
OnSendMail(callback: (player: TSPlayer, draft: TSMailDraft, delay: TSMutableNumber<uint32>)=>void);
OnFlightPathMount(callback: (player: TSPlayer, display: TSMutableNumber<uint32>, cancel: TSMutable<boolean, boolean>)=>void);
OnActivateTaxiPathEarly(callback: (player: TSPlayer, cancel: TSMutable<boolean, boolean>)=>void);
OnSendDoFlight(callback: (player: TSPlayer, path: TSNumber<uint32>, display: TSMutableNumber<uint32>, cancel: TSMutable<boolean, boolean>)=>void);
OnGenerateItemLoot(callback: (player: TSPlayer, item: TSItem, loot: TSLoot, type: uint32)=>void);
OnLootCorpse(callback: (player: TSPlayer, corpse: TSCorpse)=>void);
OnTradeCompleted(callback: (me: TSPlayer, him: TSPlayer, myItems: TSArray<TSItem>, hisItems: TSArray<TSItem>, myGold: uint32, hisGold: uint32) => void);
Expand Down

0 comments on commit 01dbb40

Please sign in to comment.