mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 09:45:28 +00:00
refactor(component): vendors load their stock in LoadDataFromTemplate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user