mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 12:41:55 +00:00 
			
		
		
		
	AchievementVendor scaffold
This commit is contained in:
		
							
								
								
									
										5
									
								
								dGame/dComponents/AchievementVendorComponent.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								dGame/dComponents/AchievementVendorComponent.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| #include "AchievementVendorComponent.h" | ||||
|  | ||||
| AchievementVendorComponent::AchievementVendorComponent(Entity* parent) : VendorComponent(parent) { | ||||
|  | ||||
| } | ||||
							
								
								
									
										16
									
								
								dGame/dComponents/AchievementVendorComponent.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								dGame/dComponents/AchievementVendorComponent.h
									
									
									
									
									
										Normal 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__ | ||||
| @@ -1,4 +1,5 @@ | ||||
| set(DGAME_DCOMPONENTS_SOURCES "ActivityComponent.cpp" | ||||
| set(DGAME_DCOMPONENTS_SOURCES "AchievementVendorComponent.cpp" | ||||
| 	"ActivityComponent.cpp" | ||||
| 	"BaseCombatAIComponent.cpp" | ||||
| 	"BaseRacingControlComponent.cpp" | ||||
| 	"BouncerComponent.cpp" | ||||
|   | ||||
| @@ -73,6 +73,7 @@ | ||||
| #include "DonationVendorComponent.h" | ||||
| #include "GateRushControlComponent.h" | ||||
| #include "RacingSoundTriggerComponent.h" | ||||
| #include "AchievementVendorComponent.h" | ||||
|  | ||||
| // Table includes | ||||
| #include "CDComponentsRegistryTable.h" | ||||
| @@ -426,6 +427,9 @@ void Entity::Initialize() { | ||||
| 		case eReplicaComponentType::RACING_SOUND_TRIGGER: | ||||
| 			AddComponent<RacingSoundTriggerComponent>(); | ||||
| 			break; | ||||
| 		case eReplicaComponentType::ACHIEVEMENT_VENDOR: | ||||
| 			AddComponent<AchievementVendorComponent>(); | ||||
| 			break; | ||||
| 		case eReplicaComponentType::GHOST: | ||||
| 		case eReplicaComponentType::SPAWN: | ||||
| 		case eReplicaComponentType::MODULAR_BUILD: | ||||
| @@ -486,7 +490,6 @@ void Entity::Initialize() { | ||||
| 		case eReplicaComponentType::IGNORE_LIST: | ||||
| 		case eReplicaComponentType::INTERACTION_MANAGER: | ||||
| 		case eReplicaComponentType::COMBAT_MEDIATOR: | ||||
| 		case eReplicaComponentType::ACHIEVEMENT_VENDOR: | ||||
| 		case eReplicaComponentType::ROLLER: | ||||
| 		case eReplicaComponentType::PLAYER_FORCED_MOVEMENT: | ||||
| 		case eReplicaComponentType::CRAFTING: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aaron Kimbre
					Aaron Kimbre