private void SortTranslucents() { var opaques = new List <MapObject>(); var translucents = new List <MapObject>(); foreach (MapObject mo in MapObjects) { bool translucent = mo.UpdateTranslucency(Textures.Translucents); if (translucent) { translucents.Add(mo); } else { opaques.Add(mo); } } MapObjects.Clear(); MapObjects.AddRange(opaques); MapObjects.AddRange(translucents); }