コード例 #1
0
ファイル: WarpDestGroup.cs プロジェクト: Drenn1/LynnaLab
        // 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;
        }
コード例 #2
0
        // 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);
        }