mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 01:35:27 +00:00
refactor(component): the collectible loads its row in LoadDataFromTemplate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,11 @@
|
||||
CollectibleComponent::CollectibleComponent(Entity* parentEntity, const int32_t componentID, const int32_t collectibleId) :
|
||||
Component(parentEntity, componentID), m_CollectibleId(collectibleId) {
|
||||
RegisterMsg(&CollectibleComponent::MsgGetObjectReportInfo);
|
||||
const auto* const row = CDClientManager::GetTable<CDCollectibleComponentTable>()->GetByID(componentID);
|
||||
}
|
||||
|
||||
// The CollectibleComponent row
|
||||
void CollectibleComponent::LoadDataFromTemplate() {
|
||||
const auto* const row = CDClientManager::GetTable<CDCollectibleComponentTable>()->GetByID(m_ComponentID);
|
||||
if (row) m_RequirementMission = row->requirementMission;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user