mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 17:25:27 +00:00
refactor(component): the property entrance loads its row in LoadDataFromTemplate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -22,9 +22,12 @@
|
||||
PropertyEntranceComponent::PropertyEntranceComponent(Entity* parent, const int32_t componentID) : Component(parent, componentID) {
|
||||
RegisterMsg(&PropertyEntranceComponent::OnRequestUse);
|
||||
this->propertyQueries = {};
|
||||
}
|
||||
|
||||
// The PropertyEntranceComponent row
|
||||
void PropertyEntranceComponent::LoadDataFromTemplate() {
|
||||
auto table = CDClientManager::GetTable<CDPropertyEntranceComponentTable>();
|
||||
const auto& entry = table->GetByID(componentID);
|
||||
const auto& entry = table->GetByID(m_ComponentID);
|
||||
|
||||
this->m_MapID = entry.mapID;
|
||||
this->m_PropertyName = entry.propertyName;
|
||||
|
||||
Reference in New Issue
Block a user