---
description: EnemyRoleData (filled)
---

# EnemyRoleData

Maps Role/Difficulty matches to enemies using persistentIDs from [EnemyDataBlock](../datablocks/main/enemy).

## Fields

### Role - [eEnemyRole](../../enum-types#eenemyrole) (enum)

Role match of this entry.

Note that roles have special values, see more information in [EnemySpawningData](../enemyspawningdata#how-to-pick-enemy-spawns).

### Difficulty - [eEnemyRoleDifficulty](../../enum-types#eenemyroledifficulty) (enum)

Difficulty match of this entry.

### Enemy - UInt32 ([EnemyDataBlock](../datablocks/main/enemy))

Enemy persistentID of this entry.

### Cost - Single

Cost of this entry. Affects how many enemies spawn when this entry is selected.

### Weight - Single

Relative weight of this entry. Affects how likely it is to be selected when several are matched.
