private IFigure AddFigure(Func <IFigure> figureAction) { var figure = _worldLoop?.CreateFigure(figureAction); _sceneFigures.Add(figure); return(figure); }
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); } } }
private void AddFigure(Func <IFigure> figureFunction) { var figure = _worldLoop?.CreateFigure(figureFunction); _sceneFigures.Add(figure); }