mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 23:47:21 +00:00
716a5fcf37
And add more virtuals
17 lines
566 B
C++
17 lines
566 B
C++
#include "PlayerForcedMovementComponent.h"
|
|
|
|
PlayerForcedMovementComponent::PlayerForcedMovementComponent(Entity* parent) : Component(parent) {
|
|
m_OwningEntity = parent;
|
|
}
|
|
|
|
PlayerForcedMovementComponent::~PlayerForcedMovementComponent() {}
|
|
|
|
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);
|
|
}
|
|
m_DirtyInfo = false;
|
|
}
|