Skip to content

UMIPVendorDataAsset

Overview

UMIPVendorDataAsset lists vendor stock as FMIPExchangeItemInfo rows (VendorItems): what the NPC sells, amounts, and input requirements (currency/items). Same struct shape as exchange; vendor managers consume this asset for buy/sell and repurchase flows.

All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.


Key Classes & Files

Class File
UMIPVendorDataAsset Public/DataAsset/MIPVendorDataAsset.h
IsDataValid Private/DataAsset/MIPVendorDataAsset.cpp

Properties

Property Type Description
VendorItems TArray<FMIPExchangeItemInfo> Sell list and requirements per row.

Editor validation

Severity Condition Message
Warning VendorItems empty VendorItems is empty — this vendor sells nothing.

Per index i:

Severity Condition Message
Error ItemTag invalid VendorItems[%d]: ItemTag is not set.
Error Amount <= 0 VendorItems[%d]: Amount must be > 0. Got: %d
Error RequiredItems[j] invalid VendorItems[%d]: RequiredItems[%d] has invalid ItemTag or Amount <= 0.

Implementation: Private/DataAsset/MIPVendorDataAsset.cpp (#if WITH_EDITOR).


Integration

Topic Link
Vendor Vendor
Data assets index Data assets index