feat(entity): a character's components as the client makes them

LWOCharacterComponent::Factory makes possession control, mount control, pet
creator, level progression and forced movement, then the character, all with
componentID -1; DLU now makes the same set in the same order (mount control
and pet creator are new, empty). The ghost is added after the component walk,
where the client adds it, for a character with physics. Nothing sent changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 15:30:20 -05:00
parent b0dd69cf0d
commit 8f09121ad4
3 changed files with 52 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
#ifndef PETCREATORCOMPONENT_H
#define PETCREATORCOMPONENT_H
#include "Component.h"
#include "eReplicaComponentType.h"
/**
* Pet creator (37): the character's taming of pets, as the client's LWOPetCreatorComponent: the client makes it (componentID -1) with every character
* (LWOCharacterComponent::Factory). Nothing of it is sent or done on the server yet.
*/
class PetCreatorComponent final : public Component {
public:
static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::PET_CREATOR;
PetCreatorComponent(Entity* parent, const int32_t componentID) : Component(parent, componentID) {}
};
#endif // PETCREATORCOMPONENT_H