> For the complete documentation index, see [llms.txt](https://gtfo-modding.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gtfo-modding.gitbook.io/wiki/reference/nested-types/enemyroledata.md).

# EnemyRoleData

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

## Fields

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

Role match of this entry.

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

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

Difficulty match of this entry.

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

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.
