2020-05-15 10:29:30 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
|
|
|
#include "PacketObjectMiscellaneous.hpp"
|
|
|
|
|
|
|
|
using namespace mwmp;
|
|
|
|
|
|
|
|
PacketObjectMiscellaneous::PacketObjectMiscellaneous(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
|
|
|
|
{
|
|
|
|
packetID = ID_OBJECT_MISCELLANEOUS;
|
2020-05-15 23:51:11 +00:00
|
|
|
hasCellData = true;
|
2020-05-15 10:29:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void PacketObjectMiscellaneous::Object(BaseObject &baseObject, bool send)
|
|
|
|
{
|
2020-05-15 23:51:11 +00:00
|
|
|
ObjectPacket::Object(baseObject, send);
|
|
|
|
RW(baseObject.goldPool, send);
|
2020-05-16 16:10:11 +00:00
|
|
|
RW(baseObject.lastGoldRestockHour, send);
|
|
|
|
RW(baseObject.lastGoldRestockDay, send);
|
2020-05-15 10:29:30 +00:00
|
|
|
}
|