refactor(component): vendors load their stock in LoadDataFromTemplate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 08:08:11 -05:00
parent 8ef3e323fe
commit 818ad152ca
4 changed files with 14 additions and 1 deletions

View File

@@ -25,8 +25,12 @@ VendorComponent::VendorComponent(Entity* parent, const int32_t componentID) : Co
RegisterMsg(&VendorComponent::OnRequestUse);
m_HasStandardCostItems = false;
m_HasMultiCostItems = false;
}
// The vendor's constants and its stock (the base's refresh: a derived vendor adds its own after)
void VendorComponent::LoadDataFromTemplate() {
SetupConstants();
RefreshInventory(true);
VendorComponent::RefreshInventory(true);
}
void VendorComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsInitialUpdate) {