Beispiel #1
0
 public void SetUp()
 {
     _output    = new TestOutput();
     _paintshop = new PaintShop(new FakeUserInputStream(new List <string> {
         "4", "5"
     }), _output);
 }
Beispiel #2
0
 public void SetUp()
 {
     _output    = new TestOutput();
     _paintshop = new PaintShop(new FakeUserInputStream(new List <string> {
         "2", "1"
     }), _output);
     _paintshop.MakeBusiness();
 }
            private void ApplyColor(Color color)
            {
                var carNode = Renderer?.CarNode;

                if (carNode == null)
                {
                    return;
                }
                Renderer.SelectSkin(null);
                var paintable = PaintShop.GetPaintableItems(Car.Id, carNode.OriginalFile);
                var carPaint  = paintable.OfType <PaintShop.CarPaint>().FirstOrDefault();

                if (carPaint != null)
                {
                    carPaint.SetRenderer(Renderer);
                    carPaint.Color  = color;
                    carPaint.Flakes = MathUtils.Random() > 0.5;
                    carPaint.ApplyImmediate();
                }
            }
Beispiel #4
0
            static void Main(string[] args)
            {
                PaintShop p = new PaintShop();

                p.Menu();
            }