示例#1
0
    public static int get_m_cooldown(IntPtr l)
    {
        int result;

        try
        {
            BattleSkillState battleSkillState = (BattleSkillState)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, battleSkillState.m_cooldown);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#2
0
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            BattleSkillState    battleSkillState = (BattleSkillState)LuaObject.checkSelf(l);
            ConfigDataSkillInfo skillInfo;
            LuaObject.checkType <ConfigDataSkillInfo>(l, 2, out skillInfo);
            battleSkillState.m_skillInfo = skillInfo;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
示例#4
0
    public static int set_m_isSkillUseable(IntPtr l)
    {
        int result;

        try
        {
            BattleSkillState battleSkillState = (BattleSkillState)LuaObject.checkSelf(l);
            bool             isSkillUseable;
            LuaObject.checkType(l, 2, out isSkillUseable);
            battleSkillState.m_isSkillUseable = isSkillUseable;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }