public StarData(Color color, float imageSizeScale, IStarName name, Vector2D position, List <StarTraitType> traits) { this.Color = color; this.ImageSizeScale = imageSizeScale; this.Name = name; this.Position = position; this.Traits = new PendableSet <IStarTrait>(traits.Select(x => x.Make())); }
public StarSystemBuilder(Color color, float imageSizeScale, IStarName name, Vector2D position, List <StarTraitType> traits) { this.Star = new StarData(color, imageSizeScale, name, position, traits); this.Planets = new List <Planet>(); }