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

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            List <int> heroIds;
            LuaObject.checkType <List <int> >(l, 2, out heroIds);
            int taskId;
            LuaObject.checkType(l, 3, out taskId);
            int slot;
            LuaObject.checkType(l, 4, out slot);
            int workSeconds;
            LuaObject.checkType(l, 5, out workSeconds);
            bool noCheck;
            LuaObject.checkType(l, 6, out noCheck);
            int i = heroAssistantsCompoment.m_luaExportHelper.__callBase_AssignHero(heroIds, taskId, slot, workSeconds, noCheck);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #2
0
    public static int DeInit(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            heroAssistantsCompoment.DeInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment o = new HeroAssistantsCompoment();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #4
0
    public static int __callBase_PostDeSerialize(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            heroAssistantsCompoment.m_luaExportHelper.__callBase_PostDeSerialize();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #5
0
    public static int GetAssignedHeroAssistantsTask(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment             heroAssistantsCompoment    = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            List <HeroAssistantsTaskAssignment> assignedHeroAssistantsTask = heroAssistantsCompoment.GetAssignedHeroAssistantsTask();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, assignedHeroAssistantsTask);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #6
0
    public static int GetDSVersion(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            ushort dsversion = heroAssistantsCompoment.GetDSVersion();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dsversion);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #7
0
    public static int __callBase_Tick(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            heroAssistantsCompoment.m_luaExportHelper.__callBase_Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #8
0
    public static int DeSerialize(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            DSHeroAssistantNtf      ntf;
            LuaObject.checkType <DSHeroAssistantNtf>(l, 2, out ntf);
            heroAssistantsCompoment.DeSerialize(ntf);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #9
0
    public static int __callBase_IsHeroAssigned(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            bool b = heroAssistantsCompoment.m_luaExportHelper.__callBase_IsHeroAssigned(heroId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #10
0
    public static int GetHeroAssistantsTaskByWeekDay(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            int weekDay;
            LuaObject.checkType(l, 2, out weekDay);
            List <HeroAssistantsTask> heroAssistantsTaskByWeekDay = heroAssistantsCompoment.GetHeroAssistantsTaskByWeekDay(weekDay);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroAssistantsTaskByWeekDay);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #11
0
    public static int __callBase_GetDropCountByTaskWorkSeconds(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            int taskId;
            LuaObject.checkType(l, 2, out taskId);
            int workSeconds;
            LuaObject.checkType(l, 3, out workSeconds);
            int i = heroAssistantsCompoment.m_luaExportHelper.__callBase_GetDropCountByTaskWorkSeconds(taskId, workSeconds);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #12
0
    public static int __callBase_GetTaskRemainingTime(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            int taskId;
            LuaObject.checkType(l, 2, out taskId);
            int slot;
            LuaObject.checkType(l, 3, out slot);
            TimeSpan timeSpan = heroAssistantsCompoment.m_luaExportHelper.__callBase_GetTaskRemainingTime(taskId, slot);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, timeSpan);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemple #13
0
    public static int __callBase_CanClaimRewards(IntPtr l)
    {
        int result;

        try
        {
            HeroAssistantsCompoment heroAssistantsCompoment = (HeroAssistantsCompoment)LuaObject.checkSelf(l);
            int taskId;
            LuaObject.checkType(l, 2, out taskId);
            int slot;
            LuaObject.checkType(l, 3, out slot);
            int i = heroAssistantsCompoment.m_luaExportHelper.__callBase_CanClaimRewards(taskId, slot);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }