DarkflameServer/dGame/dComponents/PlayerForcedMovementComponent.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
418 B
C++
Raw Normal View History

#include "PlayerForcedMovementComponent.h"
2023-07-10 05:20:51 +00:00
#include "BitStream.h"
void PlayerForcedMovementComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
2023-01-03 17:22:04 +00:00
outBitStream->Write(m_DirtyInfo || bIsInitialUpdate);
if (m_DirtyInfo || bIsInitialUpdate) {
outBitStream->Write(m_PlayerOnRail);
outBitStream->Write(m_ShowBillboard);
2023-07-10 05:20:51 +00:00
if (!bIsInitialUpdate) m_DirtyInfo = false;
}
}