2022-07-24 18:25:10 +00:00
|
|
|
#include "PlayerForcedMovementComponent.h"
|
|
|
|
|
|
|
|
PlayerForcedMovementComponent::PlayerForcedMovementComponent(Entity* parent) : Component(parent) {
|
|
|
|
m_Parent = parent;
|
|
|
|
}
|
|
|
|
|
|
|
|
PlayerForcedMovementComponent::~PlayerForcedMovementComponent() {}
|
|
|
|
|
2023-08-10 21:33:15 +00:00
|
|
|
void PlayerForcedMovementComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate) {
|
2023-01-03 17:22:04 +00:00
|
|
|
outBitStream->Write(m_DirtyInfo || bIsInitialUpdate);
|
|
|
|
if (m_DirtyInfo || bIsInitialUpdate) {
|
2022-07-24 18:25:10 +00:00
|
|
|
outBitStream->Write(m_PlayerOnRail);
|
|
|
|
outBitStream->Write(m_ShowBillboard);
|
|
|
|
}
|
|
|
|
m_DirtyInfo = false;
|
|
|
|
}
|