public static IEnumerable <BaseOverlay> AllOverlays() { foreach (Type subType in overlayTypes) { yield return(BaseOverlay.GetOverlay(subType)); } }
//private void UpdateOverlays(SkyTarget curSky) public static void Postfix(SkyManager __instance, Map ___map) { if (___map == Find.CurrentMap) { (BaseOverlay.GetOverlay(typeof(LightingOverlay)) as LightingOverlay).SetDirtySky(__instance.CurSkyGlow); } }
public static void SetDirty(Type type) { BaseOverlay.GetOverlay(type).SetDirty(); }