示例#1
0
    static int set_animationData(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Skill.Model.SkillInfo     obj  = (Logic.Skill.Model.SkillInfo)o;
            Logic.Skill.Model.AnimationData arg0 = (Logic.Skill.Model.AnimationData)ToLua.CheckObject(L, 2, typeof(Logic.Skill.Model.AnimationData));
            obj.animationData = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index animationData on a nil value" : e.Message));
        }
    }
示例#2
0
    static int get_animationData(IntPtr L)
    {
        object o = null;

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