public static void SetRole(GameEntity company, int humanId, WorkerRole workerRole, GameContext gameContext) { var managers = company.team.Managers; managers[humanId] = workerRole; company.ReplaceTeam(company.team.Morale, company.team.Organisation, managers, company.team.Workers, company.team.TeamStatus); Humans.SetRole(gameContext, humanId, workerRole); }