33 lines
800 B
C#
33 lines
800 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace UniversalEditor.ObjectModels.Lighting.Script
|
|
{
|
|
public class Track : ICloneable
|
|
{
|
|
public class TrackCollection
|
|
: System.Collections.ObjectModel.Collection<Track>
|
|
{
|
|
}
|
|
|
|
private string mvarName = String.Empty;
|
|
public string Name { get { return mvarName; } set { mvarName = value; } }
|
|
|
|
private TrackEntry.TrackEntryCollection mvarEntries = new TrackEntry.TrackEntryCollection();
|
|
public TrackEntry.TrackEntryCollection Entries { get { return mvarEntries; } }
|
|
|
|
public object Clone()
|
|
{
|
|
Track clone = new Track();
|
|
clone.Name = (Name?.Clone() as string);
|
|
foreach (TrackEntry entry in Entries)
|
|
{
|
|
clone.Entries.Add(entry.Clone() as TrackEntry);
|
|
}
|
|
return clone;
|
|
}
|
|
}
|
|
}
|