mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04:00
[General] Use ESM::Position to store BaseActor's movement
This commit is contained in:
parent
2709de83fb
commit
7662297334
@ -21,6 +21,8 @@ namespace mwmp
|
|||||||
int mpNum;
|
int mpNum;
|
||||||
|
|
||||||
ESM::Position position;
|
ESM::Position position;
|
||||||
|
ESM::Position direction;
|
||||||
|
|
||||||
ESM::Cell cell;
|
ESM::Cell cell;
|
||||||
|
|
||||||
char drawState;
|
char drawState;
|
||||||
@ -34,9 +36,6 @@ namespace mwmp
|
|||||||
|
|
||||||
AnimStates animStates;
|
AnimStates animStates;
|
||||||
bool hasAnimStates;
|
bool hasAnimStates;
|
||||||
|
|
||||||
Movement movement;
|
|
||||||
bool hasMovement;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class BaseActorList
|
class BaseActorList
|
||||||
|
@ -38,6 +38,7 @@ void PacketActorPosition::Packet(RakNet::BitStream *bs, bool send)
|
|||||||
RW(actor.refNumIndex, send);
|
RW(actor.refNumIndex, send);
|
||||||
RW(actor.mpNum, send);
|
RW(actor.mpNum, send);
|
||||||
RW(actor.position, send);
|
RW(actor.position, send);
|
||||||
|
RW(actor.direction, send);
|
||||||
|
|
||||||
if (!send)
|
if (!send)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user