mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 04:08:20 +00:00
b57cacc676
* Split out Level progression component from Character Component This is to get to the Player forced movement Comp in a sane way * move XML to component insted of abusing charComp * use overrides should probably make everything that calls that call it correctly * fix linking issue * Add proper Player Force movement component Not used, yet
16 lines
518 B
C++
16 lines
518 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;
|
|
} |