mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
17 lines
520 B
C++
17 lines
520 B
C++
#include "PlayerForcedMovementComponent.h"
|
|
|
|
PlayerForcedMovementComponent::PlayerForcedMovementComponent(Entity* parent) : Component(parent) {
|
|
m_Parent = parent;
|
|
}
|
|
|
|
PlayerForcedMovementComponent::~PlayerForcedMovementComponent() {}
|
|
|
|
void PlayerForcedMovementComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
|
|
outBitStream->Write(m_DirtyInfo);
|
|
if (m_DirtyInfo) {
|
|
outBitStream->Write(m_PlayerOnRail);
|
|
outBitStream->Write(m_ShowBillboard);
|
|
}
|
|
m_DirtyInfo = false;
|
|
}
|