# EnemyRoleData

Maps Role/Difficulty matches to enemies using persistentIDs from [EnemyDataBlock](https://gtfo-modding.gitbook.io/wiki/reference/datablocks/main/enemy).

## Fields

### Role - [eEnemyRole](https://gtfo-modding.gitbook.io/wiki/enum-types#eenemyrole) (enum)

Role match of this entry.

Note that roles have special values, see more information in [EnemySpawningData](https://gtfo-modding.gitbook.io/wiki/reference/enemyspawningdata#how-to-pick-enemy-spawns).

### Difficulty - [eEnemyRoleDifficulty](https://gtfo-modding.gitbook.io/wiki/enum-types#eenemyroledifficulty) (enum)

Difficulty match of this entry.

### Enemy - UInt32 ([EnemyDataBlock](https://gtfo-modding.gitbook.io/wiki/reference/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.
