mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-19 00:17:56 +02:00
35 lines
716 B
C++
35 lines
716 B
C++
![]() |
/*
|
||
|
* 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"
|
||
|
|
||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||
|
|
||
|
struct DLL_LINKAGE SetRewardableConfiguration : public CPackForClient
|
||
|
{
|
||
|
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;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
VCMI_LIB_NAMESPACE_END
|