Files
Viano-Core/src/server/game/Server/Packets/MiscPackets.h
T

68 lines
2.2 KiB
C++

/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MiscPackets_h__
#define MiscPackets_h__
#include "Packet.h"
#include "ObjectGuid.h"
#include "Optional.h"
namespace WorldPackets
{
namespace Misc
{
class SetupCurrency final : public ServerPacket
{
public:
struct Record
{
int32 Type = 0; // ID from CurrencyTypes.dbc
int32 Quantity = 0;
Optional<int32> WeeklyQuantity; // Currency count obtained this Week.
Optional<int32> MaxWeeklyQuantity; // Weekly Currency cap.
Optional<int32> TrackedQuantity; // Currency count obtained this season.
Optional<int32> MaxQuantity;
uint8 Flags = 0; // 0 = none,
};
SetupCurrency() : ServerPacket(SMSG_SETUP_CURRENCY, 22) { }
WorldPacket const* Write() override;
std::vector<Record> Data;
};
class RequestPVPRewardsResponse final : public ServerPacket
{
public:
RequestPVPRewardsResponse() : ServerPacket(SMSG_REQUEST_PVP_REWARDS_RESPONSE, 24) { }
WorldPacket const* Write() override;
int32 RatedRewardPointsThisWeek = 0;
int32 ArenaRewardPointsThisWeek = 0;
int32 RewardPointsThisWeek = 0;
int32 RatedMaxRewardPointsThisWeek = 0;
int32 ArenaMaxRewardPointsThisWeek = 0;
int32 MaxRewardPointsThisWeek = 0;
};
}
}
#endif // MiscPackets_h__