AchievementVendor scaffold

This commit is contained in:
Aaron Kimbre 2023-06-23 10:56:05 -05:00
parent bcbc5882dc
commit 34d22d2d0d
4 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,5 @@
#include "AchievementVendorComponent.h"
AchievementVendorComponent::AchievementVendorComponent(Entity* parent) : VendorComponent(parent) {
}

View File

@ -0,0 +1,16 @@
#ifndef __ACHIEVEMENTVENDORCOMPONENT__H__
#define __ACHIEVEMENTVENDORCOMPONENT__H__
#include "VendorComponent.h"
#include "eReplicaComponentType.h"
class Entity;
class AchievementVendorComponent : public VendorComponent {
public:
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::ACHIEVEMENT_VENDOR;
AchievementVendorComponent(Entity* parent);
};
#endif //!__ACHIEVEMENTVENDORCOMPONENT__H__

View File

@ -1,4 +1,5 @@
set(DGAME_DCOMPONENTS_SOURCES "ActivityComponent.cpp" set(DGAME_DCOMPONENTS_SOURCES "AchievementVendorComponent.cpp"
"ActivityComponent.cpp"
"BaseCombatAIComponent.cpp" "BaseCombatAIComponent.cpp"
"BaseRacingControlComponent.cpp" "BaseRacingControlComponent.cpp"
"BouncerComponent.cpp" "BouncerComponent.cpp"

View File

@ -73,6 +73,7 @@
#include "DonationVendorComponent.h" #include "DonationVendorComponent.h"
#include "GateRushControlComponent.h" #include "GateRushControlComponent.h"
#include "RacingSoundTriggerComponent.h" #include "RacingSoundTriggerComponent.h"
#include "AchievementVendorComponent.h"
// Table includes // Table includes
#include "CDComponentsRegistryTable.h" #include "CDComponentsRegistryTable.h"
@ -426,6 +427,9 @@ void Entity::Initialize() {
case eReplicaComponentType::RACING_SOUND_TRIGGER: case eReplicaComponentType::RACING_SOUND_TRIGGER:
AddComponent<RacingSoundTriggerComponent>(); AddComponent<RacingSoundTriggerComponent>();
break; break;
case eReplicaComponentType::ACHIEVEMENT_VENDOR:
AddComponent<AchievementVendorComponent>();
break;
case eReplicaComponentType::GHOST: case eReplicaComponentType::GHOST:
case eReplicaComponentType::SPAWN: case eReplicaComponentType::SPAWN:
case eReplicaComponentType::MODULAR_BUILD: case eReplicaComponentType::MODULAR_BUILD:
@ -486,7 +490,6 @@ void Entity::Initialize() {
case eReplicaComponentType::IGNORE_LIST: case eReplicaComponentType::IGNORE_LIST:
case eReplicaComponentType::INTERACTION_MANAGER: case eReplicaComponentType::INTERACTION_MANAGER:
case eReplicaComponentType::COMBAT_MEDIATOR: case eReplicaComponentType::COMBAT_MEDIATOR:
case eReplicaComponentType::ACHIEVEMENT_VENDOR:
case eReplicaComponentType::ROLLER: case eReplicaComponentType::ROLLER:
case eReplicaComponentType::PLAYER_FORCED_MOVEMENT: case eReplicaComponentType::PLAYER_FORCED_MOVEMENT:
case eReplicaComponentType::CRAFTING: case eReplicaComponentType::CRAFTING: