Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="data"></param>
        public void SaveData(MEX_Data data)
        {
            UpdateInternalIDs();
            data.StageFunctions.Array            = StageEntries.Select(e => e.Stage).ToArray();
            data.StageData.ReverbTable.Array     = StageEntries.Select(e => e.Reverb).ToArray();
            data.StageData.CollisionTable.Array  = StageEntries.Select(e => e.Collision).ToArray();
            data.StageData.StageItemLookup.Array = StageEntries.Select(e => e.ItemLookup).ToArray();
            //data.StageData.StageEffectLookup.Array = StageEntries.Select(e => e.EffectLookup).ToArray();
            data.StageData.StagePlaylists.Array = StageEntries.Select(e => e.GetPlaylist()).ToArray();
            data.StageData.StageNames           = new HSDFixedLengthPointerArrayAccessor <HSD_String>()
            {
                Array = StageEntries.Select(e => new HSD_String()
                {
                    Value = e.StageName
                }).ToArray()
            };

            data.StageData.StageIDTable.Array = StageIDs.Select(e => e.IDTable).ToArray();

            data.MetaData.NumOfExternalStage = StageEntries.Length;
            data.MetaData.NumOfInternalStage = StageIDs.Length;
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void stageEditor_ArrayUpdated(object sender, EventArgs e)
 {
     UpdateInternalIDs();
     MEXConverter.stageIDValues.Clear();
     MEXConverter.stageIDValues.AddRange(StageEntries.Select((s, i) => i + " - " + s.StageName + " - " + s.FileName));
 }