public void RegenerateLayers(MapMeshFlag changeType) { for (int i = 0; i < this.layers.Count; i++) { SectionLayer sectionLayer = this.layers[i]; if ((sectionLayer.relevantChangeTypes & changeType) != MapMeshFlag.None) { Profiler.BeginSample(string.Concat(new object[] { "Regen ", sectionLayer.GetType().Name, " ", this.botLeft })); try { sectionLayer.Regenerate(); } catch (Exception ex) { Log.Error(string.Concat(new object[] { "Could not regenerate layer ", sectionLayer.ToStringSafe <SectionLayer>(), ": ", ex }), false); } Profiler.EndSample(); } } }
internal bool <> m__0(SectionLayer sect) { return(sect.GetType() == this.type); }