TrinityCore
Loading...
Searching...
No Matches
CalendarPackets.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 CalendarPackets_h__
19#define CalendarPackets_h__
20
21#include "Packet.h"
22#include "CalendarMgr.h"
23#include "DBCStructure.h"
24#include "ObjectGuid.h"
25#include "Optional.h"
26#include "PacketUtilities.h"
27#include "WowTime.h"
28
29namespace WorldPackets
30{
31 namespace Calendar
32 {
34 {
35 public:
37
38 void Read() override { }
39 };
40
42 {
43 public:
45
46 void Read() override;
47
49 };
50
62
64 {
65 public:
67
68 void Read() override;
69
71 };
72
79
97
116
118 {
119 public:
121
122 void Read() override;
123
126 bool IsSignUp = false;
127 };
128
140
157
168
176
187
194
196 {
202 std::string_view TextureFilename;
203 std::array<WowTime, MAX_HOLIDAY_DATES> Date = { };
204 std::array<int32, MAX_HOLIDAY_DURATIONS> Duration = { };
205 std::array<int32, MAX_HOLIDAY_FLAGS> CalendarFlags = { };
206 };
207
209 {
210 public:
212
213 WorldPacket const* Write() override;
214
216 std::vector<CalendarSendCalendarInviteInfo> Invites;
217 std::vector<CalendarSendCalendarRaidLockoutInfo> RaidLockouts;
218 std::vector<CalendarSendCalendarEventInfo> Events;
221 std::vector<CalendarSendCalendarRaidResetInfo> RaidResets;
222 std::vector<CalendarSendCalendarHolidayInfo> Holidays;
223 };
224
236
257
277
279 {
280 public:
282
283 void Read() override;
284
286 bool IsSignUp = false;
287 bool Creating = true;
289 std::string Name;
290 };
291
293 {
294 public:
296
297 void Read() override;
298
302 };
303
319
332
345
358
366
385
397
408
416
418 {
419 public:
421
422 void Read() override;
423
424 bool Tentative = false;
426 };
427
440
454
456 {
457 public:
459
460 void Read() override;
461
463 bool Extend = false;
465 };
466
480
482 {
483 public:
485 CalendarCommandResult(uint8 command, uint8 result, std::string const& name) : ServerPacket(SMSG_CALENDAR_COMMAND_RESULT, 3), Command(command), Result(result), Name(name) { }
486
487 WorldPacket const* Write() override;
488
491 std::string Name;
492 };
493
507
520
534
542
544 {
545 public:
547
548 WorldPacket const* Write() override;
549
550 std::vector<CalendarEventInitialInviteInfo> Invites;
551 };
552
565
577
579 {
580 public:
582
583 WorldPacket const* Write() override;
584
587 std::string Notes;
588 bool ClearPending = false;
589 };
590
602 }
603}
604
605#endif // CalendarPackets_h__
CalendarFlags
Definition CalendarMgr.h:41
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint64_t uint64
Definition Define.h:132
uint32_t uint32
Definition Define.h:133
uint32 LowType
Definition ObjectGuid.h:142
Array< CalendarAddEventInviteInfo, CALENDAR_MAX_INVITES > Invites
CalendarCommandResult(uint8 command, uint8 result, std::string const &name)
std::vector< CalendarEventInitialInviteInfo > Invites
CalendarInviteNotesAlert(uint64 eventID, std::string const &notes)
std::vector< CalendarSendCalendarInviteInfo > Invites
std::vector< CalendarSendCalendarHolidayInfo > Holidays
std::vector< CalendarSendCalendarRaidResetInfo > RaidResets
std::vector< CalendarSendCalendarRaidLockoutInfo > RaidLockouts
std::vector< CalendarSendCalendarEventInfo > Events
std::vector< CalendarEventInviteInfo > Invites
WorldPacket _worldPacket
Definition Packet.h:42
@ CMSG_CALENDAR_EVENT_MODERATOR_STATUS
Definition Opcodes.h:1106
@ CMSG_CALENDAR_ADD_EVENT
Definition Opcodes.h:1098
@ CMSG_CALENDAR_EVENT_REMOVE_INVITE
Definition Opcodes.h:1104
@ SMSG_CALENDAR_SEND_EVENT
Definition Opcodes.h:1108
@ SMSG_CALENDAR_SEND_NUM_PENDING
Definition Opcodes.h:1125
@ CMSG_CALENDAR_EVENT_INVITE
Definition Opcodes.h:1102
@ SMSG_CALENDAR_EVENT_INVITE_NOTES
Definition Opcodes.h:1149
@ SMSG_CALENDAR_CLEAR_PENDING_ACTION
Definition Opcodes.h:1240
@ SMSG_CALENDAR_COMMAND_RESULT
Definition Opcodes.h:1114
@ CMSG_CALENDAR_GET_EVENT
Definition Opcodes.h:1095
@ CMSG_CALENDAR_EVENT_STATUS
Definition Opcodes.h:1105
@ SMSG_CALENDAR_EVENT_MODERATOR_STATUS_ALERT
Definition Opcodes.h:1122
@ SMSG_CALENDAR_EVENT_UPDATED_ALERT
Definition Opcodes.h:1121
@ SMSG_CALENDAR_EVENT_STATUS
Definition Opcodes.h:1113
@ SMSG_CALENDAR_SEND_CALENDAR
Definition Opcodes.h:1107
@ CMSG_CALENDAR_GET_NUM_PENDING
Definition Opcodes.h:1124
@ SMSG_CALENDAR_EVENT_INVITE
Definition Opcodes.h:1111
@ SMSG_CALENDAR_EVENT_INVITE_REMOVED
Definition Opcodes.h:1112
@ SMSG_CALENDAR_EVENT_REMOVED_ALERT
Definition Opcodes.h:1120
@ SMSG_CALENDAR_RAID_LOCKOUT_ADDED
Definition Opcodes.h:1115
@ CMSG_CALENDAR_COMPLAIN
Definition Opcodes.h:1123
@ CMSG_CALENDAR_EVENT_SIGNUP
Definition Opcodes.h:1239
@ SMSG_CALENDAR_FILTER_GUILD
Definition Opcodes.h:1109
@ CMSG_CALENDAR_GET_CALENDAR
Definition Opcodes.h:1094
@ SMSG_CALENDAR_EVENT_INVITE_NOTES_ALERT
Definition Opcodes.h:1150
@ SMSG_CALENDAR_EVENT_INVITE_REMOVED_ALERT
Definition Opcodes.h:1118
@ CMSG_CALENDAR_COPY_EVENT
Definition Opcodes.h:1101
@ CMSG_CALENDAR_EVENT_RSVP
Definition Opcodes.h:1103
@ SMSG_CALENDAR_ARENA_TEAM
Definition Opcodes.h:1110
@ CMSG_CALENDAR_ARENA_TEAM
Definition Opcodes.h:1097
@ SMSG_CALENDAR_RAID_LOCKOUT_UPDATED
Definition Opcodes.h:1166
@ SMSG_CALENDAR_EVENT_INVITE_STATUS_ALERT
Definition Opcodes.h:1119
@ CMSG_CALENDAR_UPDATE_EVENT
Definition Opcodes.h:1099
@ SMSG_CALENDAR_EVENT_INVITE_ALERT
Definition Opcodes.h:1117
@ CMSG_SET_SAVED_INSTANCE_EXTEND
Definition Opcodes.h:687
@ SMSG_CALENDAR_RAID_LOCKOUT_REMOVED
Definition Opcodes.h:1116
@ CMSG_CALENDAR_REMOVE_EVENT
Definition Opcodes.h:1100
@ CMSG_CALENDAR_GUILD_FILTER
Definition Opcodes.h:1096
STL namespace.
CalendarEventInitialInviteInfo(ObjectGuid inviteGuid, uint8 level)
std::array< int32, MAX_HOLIDAY_DURATIONS > Duration
std::array< WowTime, MAX_HOLIDAY_DATES > Date