mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-23 14:03:34 +00:00
0545adfac3
Have fun!
36 lines
706 B
C++
36 lines
706 B
C++
#include "PossessorComponent.h"
|
|
|
|
PossessorComponent::PossessorComponent(Entity* parent) : Component(parent)
|
|
{
|
|
m_Possessable = LWOOBJID_EMPTY;
|
|
}
|
|
|
|
PossessorComponent::~PossessorComponent()
|
|
{
|
|
|
|
}
|
|
|
|
void PossessorComponent::SetPossessable(LWOOBJID value)
|
|
{
|
|
m_Possessable = value;
|
|
}
|
|
|
|
LWOOBJID PossessorComponent::GetPossessable() const
|
|
{
|
|
return m_Possessable;
|
|
}
|
|
|
|
void PossessorComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags)
|
|
{
|
|
outBitStream->Write(m_Possessable != LWOOBJID_EMPTY);
|
|
if (m_Possessable != LWOOBJID_EMPTY)
|
|
{
|
|
outBitStream->Write(m_Possessable);
|
|
}
|
|
}
|
|
|
|
void PossessorComponent::Update(float deltaTime)
|
|
{
|
|
|
|
}
|