Here are the examples of the csharp api System.Collections.Generic.List.Remove(Weather) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : WeatherHandler.cs
with GNU General Public License v3.0
from WickedPeanuts
with GNU General Public License v3.0
from WickedPeanuts
public void Update(GameTime gameTime)
{
WeatherList.ForEach((x) => x.Update(gameTime));
foreach(Weather w in unusedWeatherList)
{
if (toBeAddedWeatherList.Count() == 0)
w.OnBeingRemoved(null);
else
w.OnBeingRemoved(toBeAddedWeatherList[0]);
WeatherList.Remove(w);
}
unusedWeatherList.Clear();
WeatherList.AddRange(toBeAddedWeatherList);
toBeAddedWeatherList.Clear();
}