mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 15:37:20 +00:00
13 lines
418 B
C++
13 lines
418 B
C++
#include "PlayerForcedMovementComponent.h"
|
|
|
|
#include "BitStream.h"
|
|
|
|
void PlayerForcedMovementComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
|
|
outBitStream->Write(m_DirtyInfo || bIsInitialUpdate);
|
|
if (m_DirtyInfo || bIsInitialUpdate) {
|
|
outBitStream->Write(m_PlayerOnRail);
|
|
outBitStream->Write(m_ShowBillboard);
|
|
if (!bIsInitialUpdate) m_DirtyInfo = false;
|
|
}
|
|
}
|