// Adds a new WarpDestData to the end of the group, returns the index public WarpDestData AddDestData() { WarpDestData newData = new WarpDestData(Project, WarpDestData.WarpCommand, null, fileParser, new List<int>{-1}); ValueReference.InitializeDataValues(newData, newData.GetValueReferences()); newData.Transition = 1; newData.DestGroup = this; newData.DestIndex = warpDestDataList.Count; fileParser.InsertComponentAfter(warpDestDataList[warpDestDataList.Count-1], newData); warpDestDataList.Add(newData); return newData; }
// Adds a new WarpDestData to the end of the group, returns the index public WarpDestData AddDestData() { WarpDestData newData = new WarpDestData(Project, WarpDestData.WarpCommand, null, fileParser, new List <int> { -1 }); ValueReference.InitializeDataValues(newData, newData.GetValueReferences()); newData.Transition = 1; newData.DestGroup = this; newData.DestIndex = warpDestDataList.Count; fileParser.InsertComponentAfter(warpDestDataList[warpDestDataList.Count - 1], newData); warpDestDataList.Add(newData); return(newData); }