Exemple #1
0
    public static int get_Reward(IntPtr l)
    {
        int result;

        try
        {
            UnchartedScoreScoreLevelBattleFinishedNetTask unchartedScoreScoreLevelBattleFinishedNetTask = (UnchartedScoreScoreLevelBattleFinishedNetTask)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, unchartedScoreScoreLevelBattleFinishedNetTask.Reward);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #2
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            int unchartedScoreId;
            LuaObject.checkType(l, 2, out unchartedScoreId);
            int levelId;
            LuaObject.checkType(l, 3, out levelId);
            ProBattleReport battleReport;
            LuaObject.checkType <ProBattleReport>(l, 4, out battleReport);
            UnchartedScoreScoreLevelBattleFinishedNetTask o = new UnchartedScoreScoreLevelBattleFinishedNetTask(unchartedScoreId, levelId, battleReport);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }