Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# UpgradeMapperSource - Runtime Docs

## UpgradeMapperSource :: table

#### Table fields

type | :: `"item"` or `"entity"` |
name | :: string? | Name of the item or entity.
Name of the item or entity.
quality | :: string? | Name of the quality prototype.
Name of the quality prototype.
comparator | :: ComparatorString? | The quality comparison type.
The quality comparison type.
module_filter | :: EntityIDFilter? | When upgrading modules, this defines the specific entities to apply the upgrade to. `nil` applies it to all entities.
When upgrading modules, this defines the specific entities to apply the upgrade to. `nil` applies it to all entities.

Concept used in

- LuaItemCommon::get_mapper()
- LuaItemCommon::set_mapper()
- LuaRecord::get_mapper()
- LuaRecord::set_mapper()