DarkflameServer/dGame/dComponents/PlayerForcedMovementComponent.cpp

17 lines
536 B
C++
Raw Permalink Normal View History

#include "PlayerForcedMovementComponent.h"
PlayerForcedMovementComponent::PlayerForcedMovementComponent(Entity* parent) : Component(parent) {
m_Parent = parent;
}
PlayerForcedMovementComponent::~PlayerForcedMovementComponent() {}
void PlayerForcedMovementComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsInitialUpdate) {
outBitStream.Write(m_DirtyInfo || bIsInitialUpdate);
2023-01-03 17:22:04 +00:00
if (m_DirtyInfo || bIsInitialUpdate) {
outBitStream.Write(m_PlayerOnRail);
outBitStream.Write(m_ShowBillboard);
}
m_DirtyInfo = false;
2022-07-28 13:39:57 +00:00
}