Ejemplo n.º 1
0
        public static ConfigSubWeatherCollection LoadFromFile(ConfigWeather config)
        {
            ConfigSubWeatherCollection weathers = new ConfigSubWeatherCollection();

            if (!string.IsNullOrEmpty(config.rainPath))
            {
                weathers.configRain = ConfigUtil.LoadConfig <ConfigRain>(config.rainPath);
            }
            return(weathers);
        }
Ejemplo n.º 2
0
 public static void LerpPreparation(ConfigSubWeatherCollection config1, ConfigSubWeatherCollection config2)
 {
     if ((config1.configRain == null) && (config2.configRain != null))
     {
         config1.configRain = config2.configRain.GetNullLerpAble();
     }
     if ((config1.configRain != null) && (config2.configRain == null))
     {
         config2.configRain = config1.configRain.GetNullLerpAble();
     }
 }
Ejemplo n.º 3
0
 public static ConfigSubWeatherCollection Lerp(ConfigSubWeatherCollection config1, ConfigSubWeatherCollection config2, float t)
 {
     return(new ConfigSubWeatherCollection {
         configRain = ConfigRain.Lerp(config1.configRain, config2.configRain, t)
     });
 }