/** * @private */ public void AddFFDTimeline(FFDTimelineData value) { if (value != null && value.skin != null && value.slot != null) { var skin = ffdTimelines.ContainsKey(value.skin.name) ? ffdTimelines[value.skin.name] : (ffdTimelines[value.skin.name] = new Dictionary <string, Dictionary <string, FFDTimelineData> >()); var slot = skin.ContainsKey(value.slot.slot.name) ? skin[value.slot.slot.name] : (skin[value.slot.slot.name] = new Dictionary <string, FFDTimelineData>()); if (!slot.ContainsKey(value.display.name)) { slot[value.display.name] = value; } else { DragonBones.Assert(false, DragonBones.ARGUMENT_ERROR); } } else { DragonBones.Assert(false, DragonBones.ARGUMENT_ERROR); } }
/** * @private */ public void AddFFDTimeline(FFDTimelineData value) { if (value != null && value.skin != null && value.slot != null) { var skin = ffdTimelines.ContainsKey(value.skin.name) ? ffdTimelines[value.skin.name] : (ffdTimelines[value.skin.name] = new Dictionary <string, Dictionary <string, FFDTimelineData> >()); var slot = skin.ContainsKey(value.slot.slot.name) ? skin[value.slot.slot.name] : (skin[value.slot.slot.name] = new Dictionary <string, FFDTimelineData>()); if (!slot.ContainsKey(value.displayIndex.ToString())) { slot[value.displayIndex.ToString()] = value; } else { DragonBones.Warn(""); } } else { DragonBones.Warn(""); } }
static int AddFFDTimeline(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); DragonBones.AnimationData obj = (DragonBones.AnimationData)ToLua.CheckObject(L, 1, typeof(DragonBones.AnimationData)); DragonBones.FFDTimelineData arg0 = (DragonBones.FFDTimelineData)ToLua.CheckObject(L, 2, typeof(DragonBones.FFDTimelineData)); obj.AddFFDTimeline(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }