UMIPMobSpawnerCombatInfoDataAsset¶
Overview¶
UMIPMobSpawnerCombatInfoDataAsset maps EMIPMobType (melee, range, mage, elite, …) to UMIPCombatMobInfoDataAsset instances for a spawner. The spawner uses this map to grant the correct combat info asset per spawned archetype.
All paths below are relative to Plugins/ModularInventoryPlus/Source/ModularInventoryPlus/.
Key Classes & Files¶
| Class | File |
|---|---|
UMIPMobSpawnerCombatInfoDataAsset |
Public/DataAsset/MIPMobSpawnerCombatInfoDataAsset.h |
IsDataValid |
Private/DataAsset/MIPMobSpawnerCombatInfoDataAsset.cpp |
Properties¶
| Property | Type | Description |
|---|---|---|
MobClassAndCombatInfoMap |
TMap<EMIPMobType, UMIPCombatMobInfoDataAsset*> |
Per-archetype combat info. |
Editor validation¶
| Severity | Condition | Message |
|---|---|---|
| Error | Map empty | MobClassAndCombatInfoMap is empty — spawner has no combat info for any mob type. |
| Error | Pair.Value null |
MobClassAndCombatInfoMap entry for MobType '%s' has a null UMIPCombatMobInfoDataAsset. |
MobType is formatted with UEnum::GetValueAsString(Pair.Key).
Implementation: Private/DataAsset/MIPMobSpawnerCombatInfoDataAsset.cpp (#if WITH_EDITOR).
Integration¶
| Topic | Link |
|---|---|
| Combat mob info | UMIPCombatMobInfoDataAsset |
| Mobs & spawners | Mobs & Spawners |
| Data assets index | Data assets index |