1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 03:45:32 +00:00

[General] Read and write mpNums in world packets

This commit is contained in:
David Cernat 2017-04-04 10:16:09 +03:00
parent 4644235cf6
commit ddedcac510
11 changed files with 11 additions and 0 deletions

View file

@ -46,6 +46,7 @@ void PacketContainer::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.containerChanges.count, send);
ContainerItem containerItem;

View file

@ -35,6 +35,7 @@ void PacketDoorState::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.doorState, send);
if (!send)

View file

@ -35,6 +35,7 @@ void PacketObjectAnimPlay::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.animGroup, send);
RW(worldObject.animMode, send);

View file

@ -35,6 +35,7 @@ void PacketObjectDelete::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
if (!send)
{

View file

@ -35,6 +35,7 @@ void PacketObjectLock::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.lockLevel, send);
if (!send)

View file

@ -35,6 +35,7 @@ void PacketObjectMove::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.pos.pos[0], send);
RW(worldObject.pos.pos[1], send);
RW(worldObject.pos.pos[2], send);

View file

@ -35,6 +35,7 @@ void PacketObjectRotate::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.pos.rot[0], send);
RW(worldObject.pos.rot[1], send);
RW(worldObject.pos.rot[2], send);

View file

@ -35,6 +35,7 @@ void PacketObjectScale::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.scale, send);
if (!send)

View file

@ -35,6 +35,7 @@ void PacketObjectUnlock::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
if (!send)
{

View file

@ -35,6 +35,7 @@ void PacketScriptLocalFloat::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.index, send);
RW(worldObject.floatVal, send);

View file

@ -35,6 +35,7 @@ void PacketScriptLocalShort::Packet(RakNet::BitStream *bs, bool send)
RW(worldObject.refId, send);
RW(worldObject.refNumIndex, send);
RW(worldObject.mpNum, send);
RW(worldObject.index, send);
RW(worldObject.shortVal, send);