An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#include <components/openmw-mp/NetworkMessages.hpp>
#include "PacketObjectMiscellaneous.hpp"
using namespace mwmp;
PacketObjectMiscellaneous::PacketObjectMiscellaneous(RakNet::RakPeerInterface *peer) : ObjectPacket(peer)
{
packetID = ID_OBJECT_MISCELLANEOUS;
hasCellData = true;
}
void PacketObjectMiscellaneous::Object(BaseObject &baseObject, bool send)
{
ObjectPacket::Object(baseObject, send);
RW(baseObject.goldPool, send);
RW(baseObject.lastGoldRestockHour, send);
RW(baseObject.lastGoldRestockDay, send);
}