static int AddBoneTimeline(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         DragonBones.AnimationData obj  = (DragonBones.AnimationData)ToLua.CheckObject <DragonBones.AnimationData>(L, 1);
         DragonBones.BoneData      arg0 = (DragonBones.BoneData)ToLua.CheckObject <DragonBones.BoneData>(L, 2);
         DragonBones.TimelineData  arg1 = (DragonBones.TimelineData)ToLua.CheckObject <DragonBones.TimelineData>(L, 3);
         obj.AddBoneTimeline(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetBone(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DragonBones.ArmatureData obj = (DragonBones.ArmatureData)ToLua.CheckObject(L, 1, typeof(DragonBones.ArmatureData));
         string arg0            = ToLua.CheckString(L, 2);
         DragonBones.BoneData o = obj.GetBone(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int AddBone(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         DragonBones.ArmatureData obj  = (DragonBones.ArmatureData)ToLua.CheckObject(L, 1, typeof(DragonBones.ArmatureData));
         DragonBones.BoneData     arg0 = (DragonBones.BoneData)ToLua.CheckObject(L, 2, typeof(DragonBones.BoneData));
         string arg1 = ToLua.CheckString(L, 3);
         obj.AddBone(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_bone(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneTimelineData obj  = (DragonBones.BoneTimelineData)o;
            DragonBones.BoneData         arg0 = (DragonBones.BoneData)ToLua.CheckObject(L, 2, typeof(DragonBones.BoneData));
            obj.bone = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bone on a nil value" : e.Message));
        }
    }
    static int get_bone(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneTimelineData obj = (DragonBones.BoneTimelineData)o;
            DragonBones.BoneData         ret = obj.bone;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bone on a nil value" : e.Message));
        }
    }
Example #6
0
    static int get_inheritScale(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneData obj = (DragonBones.BoneData)o;
            bool ret = obj.inheritScale;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index inheritScale on a nil value" : e.Message));
        }
    }
Example #7
0
    static int set_length(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneData obj = (DragonBones.BoneData)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.length = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index length on a nil value" : e.Message));
        }
    }
Example #8
0
    static int set_name(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneData obj = (DragonBones.BoneData)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.name = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index name on a nil value" : e.Message));
        }
    }
Example #9
0
    static int set_bendPositive(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneData obj = (DragonBones.BoneData)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.bendPositive = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bendPositive on a nil value" : e.Message));
        }
    }
Example #10
0
    static int get_name(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneData obj = (DragonBones.BoneData)o;
            string ret = obj.name;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index name on a nil value" : e.Message));
        }
    }
Example #11
0
    static int get_length(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneData obj = (DragonBones.BoneData)o;
            float ret = obj.length;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index length on a nil value" : e.Message));
        }
    }
Example #12
0
    static int get_chainIndex(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            DragonBones.BoneData obj = (DragonBones.BoneData)o;
            int ret = obj.chainIndex;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index chainIndex on a nil value" : e.Message));
        }
    }
Example #13
0
    static int _CreateDragonBones_BoneData(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                DragonBones.BoneData obj = new DragonBones.BoneData();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: DragonBones.BoneData.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Example #14
0
 internal void AddBone(BoneData value)
 {
     this.bones.Add(value);
 }