forked from mirror/openmw-tes3mp
[General] Read and write mpNums in world packets
This commit is contained in:
parent
4644235cf6
commit
ddedcac510
11 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue