Exemple #1
0
 static int SetAudioSource(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         CSkillSprite            obj  = (CSkillSprite)ToLua.CheckObject <CSkillSprite>(L, 1);
         UnityEngine.AudioSource arg0 = (UnityEngine.AudioSource)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSource));
         obj.SetAudioSource(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #2
0
 static int SetHitKeyFrameCallBack(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         CSkillSprite            obj  = (CSkillSprite)ToLua.CheckObject <CSkillSprite>(L, 1);
         OnSkillTriggerHitEffect arg0 = (OnSkillTriggerHitEffect)ToLua.CheckDelegate <OnSkillTriggerHitEffect>(L, 2);
         obj.SetHitKeyFrameCallBack(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #3
0
 static int SetPlayEndCallBack(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         CSkillSprite obj  = (CSkillSprite)ToLua.CheckObject <CSkillSprite>(L, 1);
         OnSkillEnd   arg0 = (OnSkillEnd)ToLua.CheckDelegate <OnSkillEnd>(L, 2);
         object       arg1 = ToLua.ToVarObject(L, 3);
         obj.SetPlayEndCallBack(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #4
0
    static int set_m_audioSource(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CSkillSprite            obj  = (CSkillSprite)o;
            UnityEngine.AudioSource arg0 = (UnityEngine.AudioSource)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSource));
            obj.m_audioSource = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_audioSource on a nil value"));
        }
    }
Exemple #5
0
    static int set_m_strHitEffectName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CSkillSprite obj  = (CSkillSprite)o;
            string       arg0 = ToLua.CheckString(L, 2);
            obj.m_strHitEffectName = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_strHitEffectName on a nil value"));
        }
    }
Exemple #6
0
    static int set_m_eSkillPos(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CSkillSprite obj  = (CSkillSprite)o;
            EmSkillPos   arg0 = (EmSkillPos)ToLua.CheckObject(L, 2, typeof(EmSkillPos));
            obj.m_eSkillPos = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_eSkillPos on a nil value"));
        }
    }
Exemple #7
0
    static int get_m_audioSource(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CSkillSprite            obj = (CSkillSprite)o;
            UnityEngine.AudioSource ret = obj.m_audioSource;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_audioSource on a nil value"));
        }
    }
Exemple #8
0
    static int get_m_strHitEffectName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CSkillSprite obj = (CSkillSprite)o;
            string       ret = obj.m_strHitEffectName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_strHitEffectName on a nil value"));
        }
    }
Exemple #9
0
    static int get_m_eSkillPos(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CSkillSprite obj = (CSkillSprite)o;
            EmSkillPos   ret = obj.m_eSkillPos;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index m_eSkillPos on a nil value"));
        }
    }