Character fixes - get it compiling again

- Pass componentID to activity component constructor
- use int componentid so -1 can denote no component
This commit is contained in:
David Markowitz
2023-06-26 22:39:15 -07:00
parent d9a3bea6d5
commit 2abcb142ad
20 changed files with 96 additions and 103 deletions

View File

@@ -305,7 +305,7 @@ void Entity::Initialize() {
AddComponent<InventoryComponent>();
break;
case eReplicaComponentType::SHOOTING_GALLERY:
AddComponent<ShootingGalleryComponent>();
AddComponent<ShootingGalleryComponent>(componentId);
break;
case eReplicaComponentType::RIGID_BODY_PHANTOM_PHYSICS:
if (hasPhysicsComponent) continue;
@@ -402,7 +402,7 @@ void Entity::Initialize() {
AddComponent<SwitchComponent>();
break;
case eReplicaComponentType::MINIGAME_CONTROL:
AddComponent<MinigameControlComponent>();
AddComponent<MinigameControlComponent>(componentId);
break;
case eReplicaComponentType::BASE_COMBAT_AI: {
auto* baseCombatAiComponent = AddComponent<BaseCombatAIComponent>(componentId);
@@ -556,7 +556,7 @@ void Entity::Initialize() {
case eReplicaComponentType::PLAYER_FORCED_MOVEMENT:
case eReplicaComponentType::CRAFTING:
case eReplicaComponentType::LEVEL_PROGRESSION:
case eReplicaComponentType::POSSESSOR:
case eReplicaComponentType::POSSESSION:
case eReplicaComponentType::MOUNT_CONTROL:
case eReplicaComponentType::UNKNOWN_112:
case eReplicaComponentType::PROPERTY_PLAQUE: