protected IEnumerable <CGameCtnGhost> ExtractAllGhosts(CGameCtnMediaClipGroup clipGroup) { var ghosts = Enumerable.Empty <CGameCtnGhost>(); foreach (var clip in clipGroup.Clips) { ghosts = ghosts.Concat(ExtractGhosts(clip.Item1)); } return(ghosts); }
protected Dictionary <CGameCtnMediaClip, IEnumerable <CGameCtnGhost> > ExtractAllGhostsDictionary(CGameCtnMediaClipGroup clipGroup) { return(clipGroup.Clips.ToDictionary(x => x.Item1, x => ExtractGhosts(x.Item1))); }