internal void Validate(WaterfallRipplesModuleParameters parameters) { IsActive = parameters.IsActive; AffectedWaterObjects = parameters.AffectedWaterObjets; TimeInterval = parameters.TimeInterval; MinimumTimeInterval = parameters.MinimumTimeInterval; MaximumTimeInterval = parameters.MaximumTimeInterval; RandomizeTimeInterval = parameters.RandomizeTimeInterval; UpdateWhenOffscreen = parameters.UpdateWhenOffscreen; }
public WaterfallRipplesModule(Game2DWaterfall waterfallObject, WaterfallRipplesModuleParameters parameters) { _waterfallObject = waterfallObject; _isActive = parameters.IsActive; _updateWhenOffscreen = parameters.UpdateWhenOffscreen; _randomizeTimeInterval = parameters.RandomizeTimeInterval; _timeInterval = parameters.TimeInterval; _minimumTimeInterval = parameters.MinimumTimeInterval; _maximumTimeInterval = parameters.MaximumTimeInterval; _affectedWaterObjets = parameters.AffectedWaterObjets; }