diff options
| author | Spp <spp@jorge.gr> | 2012-02-24 20:11:29 +0100 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2012-02-24 20:11:29 +0100 |
| commit | 32eab3dca794cf0da17153349b9e76f3a49c7a0f (patch) | |
| tree | 155e04eef648b919a2c140c2248428cd8660ee10 /src/server/game/Server | |
| parent | a934abbbb7b6454983ec8e6ac5c34cc8382c87c0 (diff) | |
Core/Calendar: WIP Calendar.
Diffstat (limited to 'src/server/game/Server')
| -rwxr-xr-x | src/server/game/Server/Protocol/Opcodes.cpp | 2 | ||||
| -rwxr-xr-x | src/server/game/Server/WorldSession.h | 21 |
2 files changed, 19 insertions, 4 deletions
diff --git a/src/server/game/Server/Protocol/Opcodes.cpp b/src/server/game/Server/Protocol/Opcodes.cpp index 4335452635b..e2e6772f230 100755 --- a/src/server/game/Server/Protocol/Opcodes.cpp +++ b/src/server/game/Server/Protocol/Opcodes.cpp @@ -1236,7 +1236,7 @@ OpcodeHandler opcodeTable[NUM_MSG_TYPES] = /*0x4B7*/ { "SMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide }, /*0x4B8*/ { "CMSG_UNUSED5", STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::Handle_NULL }, /*0x4B9*/ { "CMSG_UNUSED6", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL }, - /*0x4BA*/ { "CMSG_CALENDAR_EVENT_SIGNUP", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_NULL }, + /*0x4BA*/ { "CMSG_CALENDAR_EVENT_SIGNUP", STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleCalendarEventSignup }, /*0x4BB*/ { "SMSG_CALENDAR_CLEAR_PENDING_ACTION", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide }, /*0x4BC*/ { "SMSG_EQUIPMENT_SET_LIST", STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_ServerSide }, /*0x4BD*/ { "CMSG_EQUIPMENT_SET_SAVE", STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, &WorldSession::HandleEquipmentSetSave }, diff --git a/src/server/game/Server/WorldSession.h b/src/server/game/Server/WorldSession.h index a12470b842b..4f9880d3257 100755 --- a/src/server/game/Server/WorldSession.h +++ b/src/server/game/Server/WorldSession.h @@ -56,6 +56,8 @@ struct LfgProposal; struct LfgReward; struct LfgRoleCheck; struct LfgUpdateData; +class CalendarEvent; +class CalendarInvite; enum AccountDataType { @@ -878,9 +880,22 @@ class WorldSession void HandleCalendarEventModeratorStatus(WorldPacket& recv_data); void HandleCalendarComplain(WorldPacket& recv_data); void HandleCalendarGetNumPending(WorldPacket& recv_data); - void SendCalendarEvent(uint64 eventId, bool added = false); - void SendCalendarEventInviteAlert(uint64 eventId, uint64 inviteId); - void SendCalendarEventRemovedAlert(uint64 eventId); + void HandleCalendarEventSignup(WorldPacket& recv_data); + + void SendCalendarEvent(CalendarEvent const& calendarEvent, uint8 sendEventType); + void SendCalendarEventInvite(CalendarInvite const& invite, bool pending); + void SendCalendarEventInviteAlert(CalendarEvent const& calendarEvent, CalendarInvite const& calendarInvite); + void SendCalendarEventInviteRemove(CalendarInvite const& invite, uint32 flags); + void SendCalendarEventInviteRemoveAlert(CalendarEvent const& calendarEvent, uint8 status); + void SendCalendarEventRemovedAlert(CalendarEvent const& calendarEvent); + void SendCalendarEventUpdateAlert(CalendarEvent const& calendarEvent, uint8 sendEventType); + void SendCalendarEventStatus(CalendarEvent const& calendarEvent, CalendarInvite const& invite); + void SendCalendarEventModeratorStatusAlert(CalendarInvite const& invite); + void SendCalendarClearPendingAction(); + void SendCalendarRaildLockoutAdded(InstanceSave const* save); + void SendCalendarRaildLockoutRemoved(InstanceSave const* save); + void SendCalendarRaildLockoutUpdated(InstanceSave const* save); + void SendCalendarCommandResult(uint32 value); void SendCalendarRaidLockout(InstanceSave* save, bool add); void HandleSpellClick(WorldPacket& recv_data); |
