public SpriterObjectCollection Clone()
{
var soc = new SpriterObjectCollection();
if (SpriterEntities == null)
{
return soc;
}
soc.SpriterEntities = new Dictionary<string, SpriterObject>();
foreach (var spriterEntity in SpriterEntities)
{
if (spriterEntity.Value != null)
{
var so = spriterEntity.Value.Clone();
so.AttachTo(soc, false);
soc.SpriterEntities.Add(spriterEntity.Key,
so);
}
}
return soc;
}