Example #1
0
    public static int get_Level(IntPtr l)
    {
        int result;

        try
        {
            BattlePlayerTrainingTech battlePlayerTrainingTech = (BattlePlayerTrainingTech)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battlePlayerTrainingTech.Level);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #2
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            BattlePlayerTrainingTech o = new BattlePlayerTrainingTech();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #3
0
    public static int set_TrainingTechInfo(IntPtr l)
    {
        int result;

        try
        {
            BattlePlayerTrainingTech   battlePlayerTrainingTech = (BattlePlayerTrainingTech)LuaObject.checkSelf(l);
            ConfigDataTrainingTechInfo trainingTechInfo;
            LuaObject.checkType <ConfigDataTrainingTechInfo>(l, 2, out trainingTechInfo);
            battlePlayerTrainingTech.TrainingTechInfo = trainingTechInfo;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #4
0
 // Token: 0x06003B24 RID: 15140 RVA: 0x0010EAB4 File Offset: 0x0010CCB4
 private static int CompareTrainingTechById(BattlePlayerTrainingTech t1, BattlePlayerTrainingTech t2)
 {
     return(t1.TrainingTechInfo.ID - t2.TrainingTechInfo.ID);
 }