C_TradeInfo
namespaceavailable in: camelotStatus in wowlua
4 functions: 0 implemented, 0 recorded, 4 guessed. 15 events, 5 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
AddTradeMoney | Adds any cursor-held money to the current trade offer.() | guessed |
PickupTradeMoney | Places an amount of money from the player's trade offer onto the cursor.(amount: WOWMONEY) | guessed |
SetTradeMoney | Sets the amount of money in the current trade offer.(amount: WOWMONEY) | guessed |
ShouldShowTradeOfferWarning | Whether the trade window should warn about the current trade offer. · by wowlua(): boolean | guessed |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
PLAYER_TRADE_CURRENCY | no payload | not implemented |
PLAYER_TRADE_MONEY | no payload | implemented |
TRADE_ACCEPT_UPDATE | playerAccepted: number, targetAccepted: number | not implemented |
TRADE_CLOSED | no payload | implemented |
TRADE_CURRENCY_CHANGED | no payload | not implemented |
TRADE_MONEY_CHANGED | no payload | not implemented |
TRADE_PLAYER_ITEM_CHANGED | tradeSlotIndex: number | not implemented |
TRADE_POTENTIAL_BIND_ENCHANT | canBecomeBoundForTrade: boolean | not implemented |
TRADE_POTENTIAL_REMOVE_TRANSMOG | itemLink: string, tradeSlotIndex: number | not implemented |
TRADE_REQUEST | name: string | not implemented |
TRADE_REQUEST_CANCEL | no payload | implemented |
TRADE_SHOW | no payload | implemented |
TRADE_TARGET_ITEM_CHANGED | tradeSlotIndex: number | implemented |
TRADE_UPDATE | no payload | not implemented |
TRADE_UPDATE_WARNINGS | no payload | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("PLAYER_TRADE_CURRENCY").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (TradeInfo system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.