예제 #1
0
 /**
  * @private
  */
 public void AddSlotTimeline(SlotTimelineData value)
 {
     if (value != null && value.slot != null && !slotTimelines.ContainsKey(value.slot.name))
     {
         slotTimelines[value.slot.name] = value;
     }
     else
     {
         DragonBones.Assert(false, DragonBones.ARGUMENT_ERROR);
     }
 }
 /**
  * @private
  */
 public void AddSlotTimeline(SlotTimelineData value)
 {
     if (value != null && value.slot != null && !slotTimelines.ContainsKey(value.slot.name))
     {
         slotTimelines[value.slot.name] = value;
     }
     else
     {
         DragonBones.Warn("");
     }
 }
예제 #3
0
 static int AddSlotTimeline(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DragonBones.AnimationData    obj  = (DragonBones.AnimationData)ToLua.CheckObject(L, 1, typeof(DragonBones.AnimationData));
         DragonBones.SlotTimelineData arg0 = (DragonBones.SlotTimelineData)ToLua.CheckObject(L, 2, typeof(DragonBones.SlotTimelineData));
         obj.AddSlotTimeline(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #4
0
 static int GetSlotTimeline(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DragonBones.AnimationData obj = (DragonBones.AnimationData)ToLua.CheckObject(L, 1, typeof(DragonBones.AnimationData));
         string arg0 = ToLua.CheckString(L, 2);
         DragonBones.SlotTimelineData o = obj.GetSlotTimeline(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }