示例#1
0
 static int FindAttachmentsForSlot(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Spine.Skin obj  = (Spine.Skin)ToLua.CheckObject <Spine.Skin>(L, 1);
         int        arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         System.Collections.Generic.List <Spine.Attachment> arg1 = (System.Collections.Generic.List <Spine.Attachment>)ToLua.CheckObject(L, 3, typeof(System.Collections.Generic.List <Spine.Attachment>));
         obj.FindAttachmentsForSlot(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#2
0
        /// <summary><see cref="Spine.Skin.FindAttachmentsForSlot(int,List)"/></summary>
        public static void FindAttachmentsForSlot(this Skin skin, string slotName, SkeletonData skeletonData, List <Attachment> results)
        {
            int slotIndex = skeletonData.FindSlotIndex(slotName);

            skin.FindAttachmentsForSlot(slotIndex, results);
        }