Пример #1
0
        /// <summary>
        /// Applies the cloud values
        /// </summary>
        /// <param name="_Owner"></param>
        /// <param name="_Cloud"></param>
        /// <param name="_Values"></param>
        /// <param name="_WeatherBalance"></param>
        public void Apply( NuajOrchestrator _Owner, ModuleCloudVolume.CloudLayer _Cloud )
        {
            if ( !(_Cloud.Enabled=Enabled) )
                return;

            _Cloud.Altitude = Altitude;
            _Cloud.Thickness = Thickness;
            _Cloud.Coverage = Coverage;
            _Cloud.Density = 5.0e-3f * Density;
            _Cloud.NoiseTiling = 0.02f * NoiseTiling;
            _Cloud.AmplitudeFactor = NoiseAmplitude;
            _Cloud.FrequencyFactor = NoiseFrequency;

            // Setup wind
            _Cloud.WindDirectionAngle = _Owner.m_WindDirectionAngle;
            _Cloud.WindForce = _Owner.ComputeWindForce( _Cloud.Altitude );
        }
 public ModuleEditorCloudVolume( ModuleCloudVolume _Module )
     : base(_Module)
 {
     m_Module = _Module;
 }