/// <summary> /// /// </summary> /// <param name="model"></param> /// <param name="noiseFactory"></param> /// <param name="mapRefreshDelayMs">Introduce a small delay before refreshing the noise map to allow further /// changes to the config. i.e. When scrolling a scrollbar to change a value /// the redraw is not finished by the time the next scroll event arrive and produces /// a laggy UX. The delay is reset every time the Redraw is called. Set to '0' for testing.</param> public MainPresenter(MainModel model, INoiseFactory noiseFactory, int mapRefreshDelayMs = 10) { _noiseFactory = noiseFactory; _model = model; _mapRefreshDelayMs = mapRefreshDelayMs; }
public INoiseBuilder Perlin() { _noiseFactory = new PerlinNoiseFactory(); return(this); }