TrinityCore
Loading...
Searching...
No Matches
LootPackets.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
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_LOOT_PACKETS_H
19#define TRINITYCORE_LOOT_PACKETS_H
20
21#include "ObjectGuid.h"
22#include "Packet.h"
23
24namespace WorldPackets
25{
26 namespace Loot
27 {
29 {
30 public:
32
33 void Read() override;
34
36 };
37
48
50 {
51 public:
53
54 WorldPacket const* Write() override;
55
60 std::vector<LootItemData> Items;
61 };
62
64 {
65 public:
67
68 void Read() override;
69
71 };
72
74 {
75 public:
77
78 WorldPacket const* Write() override;
79
81 };
82
84 {
85 public:
87
88 void Read() override;
89
91 };
92
94 {
95 public:
97
98 void Read() override { }
99 };
100
102 {
103 public:
105
106 WorldPacket const* Write() override;
107
109 bool SoleLooter = false;
110 };
111
113 {
114 public:
116
117 WorldPacket const* Write() override { return &_worldPacket; }
118 };
119 }
120}
121
122#endif
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
WorldPacket const * Write() override
LootItem(WorldPacket &&packet)
Definition LootPackets.h:66
WorldPacket const * Write() override
LootMoney(WorldPacket &&packet)
Definition LootPackets.h:96
LootRelease(WorldPacket &&packet)
Definition LootPackets.h:86
WorldPacket const * Write() override
std::vector< LootItemData > Items
Definition LootPackets.h:60
WorldPacket const * Write() override
LootUnit(WorldPacket &&packet)
Definition LootPackets.h:31
WorldPacket _worldPacket
Definition Packet.h:42
@ SMSG_LOOT_CLEAR_MONEY
Definition Opcodes.h:386
@ SMSG_LOOT_REMOVED
Definition Opcodes.h:383
@ CMSG_LOOT
Definition Opcodes.h:378
@ CMSG_LOOT_RELEASE
Definition Opcodes.h:380
@ CMSG_AUTOSTORE_LOOT_ITEM
Definition Opcodes.h:293
@ SMSG_LOOT_RESPONSE
Definition Opcodes.h:381
@ CMSG_LOOT_MONEY
Definition Opcodes.h:379
@ SMSG_LOOT_MONEY_NOTIFY
Definition Opcodes.h:384
STL namespace.
Definition Loot.h:226