UMIPMobInfoDataAsset
Overview
UMIPMobInfoDataAsset combines friendly mob data (FMIPMobInfo: name, tag, level, presentation) with an optional UMIPLootDefinitionAsset pointer for drops. Multiple mob instances can share one asset to save memory and centralize tuning. GetMobInfo / GetLootDefinitionAsset expose data to gameplay code.
All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.
Key Classes & Files
| Class |
File |
UMIPMobInfoDataAsset |
Public/DataAsset/MIPMobInfoDataAsset.h |
FMIPMobInfo |
Public/Mob/MIPMobTypes.h |
IsDataValid |
Private/DataAsset/MIPMobInfoDataAsset.cpp |
Properties
| Property |
Type |
Description |
MobFriendlyInfo |
FMIPMobInfo |
Display name, mob tag, level, etc. |
LootDefinitionAsset |
UMIPLootDefinitionAsset* |
Shared loot table for this mob type. |
Editor validation
| Severity |
Condition |
Message |
| Error |
MobFriendlyInfo.MobTag invalid |
MobFriendlyInfo.MobTag is not set. |
| Error |
MobFriendlyInfo.MobName empty |
MobFriendlyInfo.MobName is empty. |
| Error |
MobFriendlyInfo.MobLevel <= 0 |
MobFriendlyInfo.MobLevel must be > 0. Got: %d |
Implementation: Private/DataAsset/MIPMobInfoDataAsset.cpp (#if WITH_EDITOR).
Integration