Beispiel #1
0
 static int SetDamageValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 8);
         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));
         uint  arg3 = (uint)LuaDLL.luaL_checknumber(L, 5);
         bool  arg4 = LuaDLL.luaL_checkboolean(L, 6);
         float arg5 = (float)LuaDLL.luaL_checknumber(L, 7);
         int   arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
         obj.SetDamageValue(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #2
0
    static int _CreateLogic_Skill_Model_SkillInfo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 1);
                Logic.Skill.Model.SkillInfo obj = new Logic.Skill.Model.SkillInfo(arg0);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Logic.Skill.Model.SkillInfo.New"));
            }
        }
        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));
        }
    }