TrinityCore
TraitPackets.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_TRAIT_PACKETS_H
19#define TRINITYCORE_TRAIT_PACKETS_H
20
21#include "Packet.h"
22#include "TraitPacketsCommon.h"
23
25{
26class TraitsCommitConfig final : public ClientPacket
27{
28public:
30
31 void Read() override;
32
36};
37
39{
40public:
41 TraitConfigCommitFailed(int32 configId = 0, int32 spellId = 0, int32 reason = 0) : ServerPacket(SMSG_TRAIT_CONFIG_COMMIT_FAILED, 4 + 4 + 1),
42 ConfigID(configId), SpellID(spellId), Reason(reason) { }
43
44 WorldPacket const* Write() override;
45
49};
50
52{
53public:
55
56 void Read() override;
57
59};
60
62{
63public:
65
66 void Read() override;
67
70};
71
73{
74public:
76
77 void Read() override;
78
80};
81
83{
84public:
86
87 void Read() override;
88
90 bool Active = false;
91};
92
94{
95public:
97
98 void Read() override;
99
101 bool UsesShared = false;
103};
104}
105
106#endif // TRINITYCORE_TRAIT_PACKETS_H
int32_t int32
Definition: Define.h:138
TraitConfigCommitFailed(int32 configId=0, int32 spellId=0, int32 reason=0)
Definition: TraitPackets.h:41
WorldPacket const * Write() override
TraitsCommitConfig(WorldPacket &&packet)
Definition: TraitPackets.h:29
@ CMSG_TRAITS_COMMIT_CONFIG
Definition: Opcodes.h:858
@ CMSG_CLASS_TALENTS_SET_USES_SHARED_ACTION_BARS
Definition: Opcodes.h:245
@ CMSG_CLASS_TALENTS_RENAME_CONFIG
Definition: Opcodes.h:242
@ CMSG_CLASS_TALENTS_DELETE_CONFIG
Definition: Opcodes.h:239
@ CMSG_CLASS_TALENTS_SET_STARTER_BUILD_ACTIVE
Definition: Opcodes.h:244
@ CMSG_CLASS_TALENTS_REQUEST_NEW_CONFIG
Definition: Opcodes.h:243
@ SMSG_TRAIT_CONFIG_COMMIT_FAILED
Definition: Opcodes.h:2009
STL namespace.