static int GetMechanicsDataById(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 1);
         Logic.Skill.Model.MechanicsData o = Logic.Skill.Model.MechanicsData.GetMechanicsDataById(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 static int PlayBuffEffect(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Logic.Fight.Controller.MechanicsController obj  = (Logic.Fight.Controller.MechanicsController)ToLua.CheckObject(L, 1, typeof(Logic.Fight.Controller.MechanicsController));
         Logic.Character.CharacterEntity            arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         Logic.Skill.Model.MechanicsData            arg1 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 3, typeof(Logic.Skill.Model.MechanicsData));
         obj.PlayBuffEffect(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_effectIdsStr(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj = (Logic.Skill.Model.MechanicsData)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.effectIdsStr = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index effectIdsStr on a nil value" : e.Message));
        }
    }
    static int set_mechanicsTypeInt(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj = (Logic.Skill.Model.MechanicsData)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.mechanicsTypeInt = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mechanicsTypeInt on a nil value" : e.Message));
        }
    }
    static int set_mechanicsType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj  = (Logic.Skill.Model.MechanicsData)o;
            Logic.Enums.MechanicsType       arg0 = (Logic.Enums.MechanicsType)ToLua.CheckObject(L, 2, typeof(Logic.Enums.MechanicsType));
            obj.mechanicsType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mechanicsType on a nil value" : e.Message));
        }
    }
    static int set_needTarget(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj = (Logic.Skill.Model.MechanicsData)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.needTarget = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index needTarget on a nil value" : e.Message));
        }
    }
    static int get_maxLayer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj = (Logic.Skill.Model.MechanicsData)o;
            uint ret = obj.maxLayer;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index maxLayer on a nil value" : e.Message));
        }
    }
    static int get_audioType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj = (Logic.Skill.Model.MechanicsData)o;
            int ret = obj.audioType;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index audioType on a nil value" : e.Message));
        }
    }
    static int get_effectIds(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj = (Logic.Skill.Model.MechanicsData)o;
            uint[] ret = obj.effectIds;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index effectIds on a nil value" : e.Message));
        }
    }
    static int get_mechanicsType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.MechanicsData obj = (Logic.Skill.Model.MechanicsData)o;
            Logic.Enums.MechanicsType       ret = obj.mechanicsType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mechanicsType on a nil value" : e.Message));
        }
    }
    static int get_mechanics(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Character.Model.BuffInfo  obj = (Logic.Character.Model.BuffInfo)o;
            Logic.Skill.Model.MechanicsData ret = obj.mechanics;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mechanics on a nil value" : e.Message));
        }
    }
    static int _CreateLogic_Skill_Model_MechanicsData(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                Logic.Skill.Model.MechanicsData obj = new Logic.Skill.Model.MechanicsData();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Logic.Skill.Model.MechanicsData.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #13
0
 static int CalcDamage(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 10);
         Logic.Fight.Controller.MechanicsController obj  = (Logic.Fight.Controller.MechanicsController)ToLua.CheckObject(L, 1, typeof(Logic.Fight.Controller.MechanicsController));
         Logic.Character.CharacterEntity            arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         Logic.Character.CharacterEntity            arg1 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 3, typeof(Logic.Character.CharacterEntity));
         Logic.Skill.Model.SkillInfo     arg2            = (Logic.Skill.Model.SkillInfo)ToLua.CheckObject(L, 4, typeof(Logic.Skill.Model.SkillInfo));
         Logic.Skill.Model.MechanicsData arg3            = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 5, typeof(Logic.Skill.Model.MechanicsData));
         int   arg4 = (int)LuaDLL.luaL_checknumber(L, 6);
         float arg5 = (float)LuaDLL.luaL_checknumber(L, 7);
         float arg6 = (float)LuaDLL.luaL_checknumber(L, 8);
         float arg7 = (float)LuaDLL.luaL_checknumber(L, 9);
         float arg8 = (float)LuaDLL.luaL_checknumber(L, 10);
         obj.CalcDamage(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int _CreateLogic_Character_Model_BuffInfo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 7)
            {
                Logic.Character.CharacterEntity arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
                Logic.Skill.Model.MechanicsData arg1 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 2, typeof(Logic.Skill.Model.MechanicsData));
                Logic.Enums.BuffType            arg2 = (Logic.Enums.BuffType)ToLua.CheckObject(L, 3, typeof(Logic.Enums.BuffType));
                float arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
                float arg4 = (float)LuaDLL.luaL_checknumber(L, 5);
                int   arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
                float arg6 = (float)LuaDLL.luaL_checknumber(L, 7);
                Logic.Character.Model.BuffInfo obj = new Logic.Character.Model.BuffInfo(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 11 && TypeChecker.CheckTypes(L, typeof(Logic.Character.CharacterEntity), typeof(Logic.Character.CharacterEntity), typeof(Logic.Skill.Model.SkillInfo), typeof(Logic.Skill.Model.MechanicsData), typeof(Logic.Enums.BuffType), typeof(Logic.Enums.SkillLevelBuffAddType), typeof(Logic.Enums.BuffAddType), typeof(float), typeof(float), typeof(uint), typeof(int)))
            {
                Logic.Character.CharacterEntity   arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
                Logic.Character.CharacterEntity   arg1 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
                Logic.Skill.Model.SkillInfo       arg2 = (Logic.Skill.Model.SkillInfo)ToLua.CheckObject(L, 3, typeof(Logic.Skill.Model.SkillInfo));
                Logic.Skill.Model.MechanicsData   arg3 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 4, typeof(Logic.Skill.Model.MechanicsData));
                Logic.Enums.BuffType              arg4 = (Logic.Enums.BuffType)ToLua.CheckObject(L, 5, typeof(Logic.Enums.BuffType));
                Logic.Enums.SkillLevelBuffAddType arg5 = (Logic.Enums.SkillLevelBuffAddType)ToLua.CheckObject(L, 6, typeof(Logic.Enums.SkillLevelBuffAddType));
                Logic.Enums.BuffAddType           arg6 = (Logic.Enums.BuffAddType)ToLua.CheckObject(L, 7, typeof(Logic.Enums.BuffAddType));
                float arg7  = (float)LuaDLL.luaL_checknumber(L, 8);
                float arg8  = (float)LuaDLL.luaL_checknumber(L, 9);
                uint  arg9  = (uint)LuaDLL.luaL_checknumber(L, 10);
                int   arg10 = (int)LuaDLL.luaL_checknumber(L, 11);
                Logic.Character.Model.BuffInfo obj = new Logic.Character.Model.BuffInfo(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 12 && TypeChecker.CheckTypes(L, typeof(Logic.Character.CharacterEntity), typeof(Logic.Character.CharacterEntity), typeof(Logic.Skill.Model.SkillInfo), typeof(Logic.Skill.Model.MechanicsData), typeof(Logic.Enums.BuffType), typeof(Logic.Enums.SkillLevelBuffAddType), typeof(Logic.Enums.BuffAddType), typeof(int), typeof(uint), typeof(float), typeof(uint), typeof(int)))
            {
                Logic.Character.CharacterEntity   arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
                Logic.Character.CharacterEntity   arg1 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
                Logic.Skill.Model.SkillInfo       arg2 = (Logic.Skill.Model.SkillInfo)ToLua.CheckObject(L, 3, typeof(Logic.Skill.Model.SkillInfo));
                Logic.Skill.Model.MechanicsData   arg3 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 4, typeof(Logic.Skill.Model.MechanicsData));
                Logic.Enums.BuffType              arg4 = (Logic.Enums.BuffType)ToLua.CheckObject(L, 5, typeof(Logic.Enums.BuffType));
                Logic.Enums.SkillLevelBuffAddType arg5 = (Logic.Enums.SkillLevelBuffAddType)ToLua.CheckObject(L, 6, typeof(Logic.Enums.SkillLevelBuffAddType));
                Logic.Enums.BuffAddType           arg6 = (Logic.Enums.BuffAddType)ToLua.CheckObject(L, 7, typeof(Logic.Enums.BuffAddType));
                int   arg7  = (int)LuaDLL.luaL_checknumber(L, 8);
                uint  arg8  = (uint)LuaDLL.luaL_checknumber(L, 9);
                float arg9  = (float)LuaDLL.luaL_checknumber(L, 10);
                uint  arg10 = (uint)LuaDLL.luaL_checknumber(L, 11);
                int   arg11 = (int)LuaDLL.luaL_checknumber(L, 12);
                Logic.Character.Model.BuffInfo obj = new Logic.Character.Model.BuffInfo(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Logic.Character.Model.BuffInfo.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }