1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-21 22:33:43 +02:00
vcmi/lib/networkPacks/StackLocation.h
2025-03-08 14:04:51 +00:00

37 lines
622 B
C++

/*
* StackLocation.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 "../constants/EntityIdentifiers.h"
VCMI_LIB_NAMESPACE_BEGIN
struct StackLocation
{
ObjectInstanceID army;
SlotID slot;
StackLocation() = default;
StackLocation(const ObjectInstanceID & army, const SlotID & slot)
: army(army)
, slot(slot)
{
}
template<typename Handler>
void serialize(Handler & h)
{
h & army;
h & slot;
}
};
VCMI_LIB_NAMESPACE_END