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

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

            this.SendWeather(weatherZone);
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 5
0
 public void SendWeather(WeatherZone weatherZone)
 {
     SessionsInWeatherZone(weatherZone).ForEach(s => s.SendPacket(new PSWeather(weatherZone)));
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 7
0
 public void UpdateWeatherZone(WeatherZone weatherZone)
 {
     if(weatherZone.ChangeWeather()) SendWeather(weatherZone);
 }
Ejemplo n.º 8
0
 public void SendWeather(WeatherZone weatherZone)
 {
     SessionsInWeatherZone(weatherZone).ForEach(s => s.SendPacket(new PSWeather(weatherZone)));
 }