static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        Logic.Enums.BuffType o = (Logic.Enums.BuffType)arg0;
        ToLua.Push(L, o);
        return(1);
    }
    static int set_buffType(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Character.Model.BuffInfo obj = (Logic.Character.Model.BuffInfo)o;
            Logic.Enums.BuffType           ret = obj.buffType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index buffType on a nil value" : e.Message));
        }
    }
    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));
        }
    }