Example #1
0
        public void SetWeather(WeatherZone weatherZone, WeatherType type, float intensity)
        {
            weatherZone.CurrentWeather = type;
            weatherZone.Intensity      = intensity;

            this.SendWeather(weatherZone);
        }
Example #2
0
 public void UpdateWeatherZone(WeatherZone weatherZone)
 {
     if (weatherZone.ChangeWeather())
     {
         SendWeather(weatherZone);
     }
 }
Example #3
0
        public void SetWeather(WeatherZone weatherZone, WeatherType type, float intensity)
        {
            weatherZone.CurrentWeather = type;
            weatherZone.Intensity = intensity;

            this.SendWeather(weatherZone);
        }
Example #4
0
        private List <WorldSession> SessionsInWeatherZone(WeatherZone weatherZone)
        {
            var entityComponent = Core.GetComponent <EntityComponent>();

            return
                ((from p in entityComponent.PlayerEntities.Where(pe => pe.Location.MapID == weatherZone.MapId)
                  select p.Session).ToList());
        }
Example #5
0
 public void SendWeather(WeatherZone weatherZone)
 {
     SessionsInWeatherZone(weatherZone).ForEach(s => s.SendPacket(new PSWeather(weatherZone)));
 }
Example #6
0
 private List<WorldSession> SessionsInWeatherZone(WeatherZone weatherZone)
 {
     var entityComponent = Core.GetComponent<EntityComponent>();
     return
         (from p in entityComponent.PlayerEntities.Where(pe => pe.Location.MapID == weatherZone.MapId)
          select p.Session).ToList();
 }
Example #7
0
 public void UpdateWeatherZone(WeatherZone weatherZone)
 {
     if(weatherZone.ChangeWeather()) SendWeather(weatherZone);
 }
Example #8
0
 public void SendWeather(WeatherZone weatherZone)
 {
     SessionsInWeatherZone(weatherZone).ForEach(s => s.SendPacket(new PSWeather(weatherZone)));
 }