Files
factorio-scenario-ExpCluster/modules/ExpGamingPlayer/playerList/src/ranking.lua
2018-10-12 22:44:29 +01:00

12 lines
358 B
Lua

local Role = require('ExpGamingCore.Role@^4.0.0')
script.on_event(defines.events.on_role_change,self.update)
return function()
local rtn = {}
for _,role_name in pairs(Role.order) do
local role = Role.get(role_name)
table.insert(rtn,{role.colour,role.short_hand,role:get_players(true),role.not_reportable})
end
return rtn
end