reverse-defines module

Defines reverse lookup table.

Usage

local reverse_defines = require('__flib__.reverse-defines')

event.on_built_entity(function(e)
  local player = game.get_player(e.player_index)
  local controller_name = reverse_defines.controllers[player.controller_type]
end)