TrinityCore
Loading...
Searching...
No Matches
AuctionHousePackets.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2008-2015 TrinityCore <http://www.trinitycore.org/>
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef TRINITYCORE_AUCTION_HOUSE_PACKETS_H
19#define TRINITYCORE_AUCTION_HOUSE_PACKETS_H
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23
24namespace WorldPackets
25{
26 namespace AuctionHouse
27 {
29 {
30 public:
32
33 void Read() override;
34
36 };
37
39 {
40 public:
42
43 WorldPacket const* Write() override;
44
47 bool OpenForBusiness = true;
48 };
49
51 {
52 public:
53 explicit AuctionCommandResult() : ServerPacket(SMSG_AUCTION_COMMAND_RESULT, 4 + 4 + 4 + 8 + 4 + 4) { }
54
55 WorldPacket const* Write() override;
56
64 };
65 }
66}
67
68#endif // TRINITYCORE_AUCTION_HOUSE_PACKETS_H
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
int32 BagResult
the bid error. Possible values are AuctionError
uint32 Money
the amount of money that the player bid in copper
ObjectGuid Guid
the GUID of the bidder for this auction.
int32 ErrorCode
the error code that was generated when trying to perform the action. Possible values are AuctionError
int32 AuctionID
the id of the auction that triggered this notification
uint32 MinIncrement
the sum of outbid is (1% of current bid) * 5, if the bid is too small, then this value is 1 copper.
int32 Command
the type of action that triggered this notification. Possible values are AuctionAction
@ SMSG_AUCTION_COMMAND_RESULT
Definition Opcodes.h:632
@ MSG_AUCTION_HELLO
Definition Opcodes.h:626
STL namespace.