public static int GetActorById(IntPtr l)
    {
        int result;

        try
        {
            BattleTeam battleTeam = (BattleTeam)LuaObject.checkSelf(l);
            int        id;
            LuaObject.checkType(l, 2, out id);
            BattleActor actorById = battleTeam.GetActorById(id);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, actorById);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }