protected UnlimitedZone(Controller c, UnlimitedZone zone) : base(c) { Entities = new List <IPlayable>(zone.Count); for (int i = 0; i < zone.Entities.Count; ++i) { IPlayable copy = zone.Entities[i].Clone(c); copy.Zone = this; Entities.Add(copy); } }
protected UnlimitedZone(Controller c, UnlimitedZone zone) : base(c) { var entities = new List <IPlayable>(zone.Count); IList <IPlayable> src = zone.Entities; for (int i = 0; i < src.Count; ++i) { IPlayable copy = src[i].Clone(c); copy.Zone = this; entities.Add(copy); } Entities = entities; }
protected UnlimitedZone(Controller c, UnlimitedZone zone) : base(c, zone.Type) { IPlayable[] src = zone._entities; var entities = new IPlayable[src.Length]; for (int i = 0; i < zone.Count; ++i) { IPlayable copy = src[i].Clone(c); copy.Zone = this; //entities.Add(copy); entities[i] = copy; } _entities = entities; _count = zone._count; }