Esempio n. 1
0
        private IFigure AddFigure(Func <IFigure> figureAction)
        {
            var figure = _worldLoop?.CreateFigure(figureAction);

            _sceneFigures.Add(figure);
            return(figure);
        }
Esempio n. 2
0
 public void SendEvent(string eventString)
 {
     if (eventString == "SomeEvent")
     {
         for (int i = 0; i < 25; i++)
         {
             _worldLoop.CreateFigure(() => new Circle(_worldLoop.World, 15, 400, 400));
             Thread.Sleep(100);
         }
     }
 }
Esempio n. 3
0
        private void AddFigure(Func <IFigure> figureFunction)
        {
            var figure = _worldLoop?.CreateFigure(figureFunction);

            _sceneFigures.Add(figure);
        }