示例#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);
        }
示例#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();
     }
 }
示例#3
0
 public static ConfigSubWeatherCollection Lerp(ConfigSubWeatherCollection config1, ConfigSubWeatherCollection config2, float t)
 {
     return(new ConfigSubWeatherCollection {
         configRain = ConfigRain.Lerp(config1.configRain, config2.configRain, t)
     });
 }