1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/lib/networkPacks/SetRewardableConfiguration.h

52 lines
1.1 KiB
C++
Raw Normal View History

/*
* SetRewardableConfiguration.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
#include "NetPacksBase.h"
#include "../rewardable/Configuration.h"
#include "../mapObjectConstructors/CBankInstanceConstructor.h"
VCMI_LIB_NAMESPACE_BEGIN
struct DLL_LINKAGE SetRewardableConfiguration : public CPackForClient
{
2024-08-24 01:17:08 +02:00
void applyGs(CGameState * gs) override;
void visitTyped(ICPackVisitor & visitor) override;
ObjectInstanceID objectID;
BuildingID buildingID;
Rewardable::Configuration configuration;
template <typename Handler> void serialize(Handler & h)
{
h & objectID;
h & buildingID;
h & configuration;
}
};
struct DLL_LINKAGE SetBankConfiguration : public CPackForClient
{
2024-08-24 01:17:08 +02:00
void applyGs(CGameState * gs) override;
void visitTyped(ICPackVisitor & visitor) override;
ObjectInstanceID objectID;
BankConfig configuration;
template <typename Handler> void serialize(Handler & h)
{
h & objectID;
h & configuration;
}
};
VCMI_LIB_NAMESPACE_END