static int _CreateLogic_Skill_Model_SkillDesInfo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 5)
            {
                Logic.Enums.MechanicsType      arg0 = (Logic.Enums.MechanicsType)ToLua.CheckObject(L, 1, typeof(Logic.Enums.MechanicsType));
                Logic.Enums.TargetType         arg1 = (Logic.Enums.TargetType)ToLua.CheckObject(L, 2, typeof(Logic.Enums.TargetType));
                Logic.Enums.MechanicsValueType arg2 = (Logic.Enums.MechanicsValueType)ToLua.CheckObject(L, 3, typeof(Logic.Enums.MechanicsValueType));
                float arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
                bool  arg4 = LuaDLL.luaL_checkboolean(L, 5);
                Logic.Skill.Model.SkillDesInfo obj = new Logic.Skill.Model.SkillDesInfo(arg0, arg1, arg2, arg3, arg4);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Logic.Skill.Model.SkillDesInfo.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #2
0
 public void Call(Logic.Skill.Model.SkillDesInfo param0)
 {
     func.BeginPCall();
     func.PushObject(param0);
     func.PCall();
     func.EndPCall();
 }
Example #3
0
        public bool Call(Logic.Skill.Model.SkillDesInfo param0)
        {
            func.BeginPCall();
            func.PushObject(param0);
            func.PCall();
            bool ret = func.CheckBoolean();

            func.EndPCall();
            return(ret);
        }
Example #4
0
        public int Call(Logic.Skill.Model.SkillDesInfo param0, Logic.Skill.Model.SkillDesInfo param1)
        {
            func.BeginPCall();
            func.PushObject(param0);
            func.PushObject(param1);
            func.PCall();
            int ret = (int)func.CheckNumber();

            func.EndPCall();
            return(ret);
        }
    static int get_target(IntPtr L)
    {
        object o = null;

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

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

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

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

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

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.SkillDesInfo obj = (Logic.Skill.Model.SkillDesInfo)o;
            float ret = obj.mechanicsValue2;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mechanicsValue2 on a nil value" : e.Message));
        }
    }