예제 #1
0
 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;
 }
예제 #2
0
        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;
        }