Add ghost component (#1409)

will be used to migrate other Player functionality in a future PR.

Tested that I can login still.
This commit is contained in:
David Markowitz
2024-01-12 11:18:28 -08:00
committed by GitHub
parent 929d029f12
commit 8b6fb8fb44
4 changed files with 21 additions and 0 deletions

View File

@@ -80,6 +80,7 @@
#include "RacingStatsComponent.h"
#include "CollectibleComponent.h"
#include "ItemComponent.h"
#include "GhostComponent.h"
// Table includes
#include "CDComponentsRegistryTable.h"
@@ -436,6 +437,8 @@ void Entity::Initialize() {
AddComponent<PlayerForcedMovementComponent>();
AddComponent<CharacterComponent>(m_Character)->LoadFromXml(m_Character->GetXMLDoc());
AddComponent<GhostComponent>();
}
if (compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::INVENTORY) > 0 || m_Character) {