using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; using Terraria.ModLoader; namespace CalamityMod.Skies { [Autoload(Side = ModSide.Client)] internal sealed class SkyTextureRefs : ModSystem { // Astral Sky/BG public static Asset AstralSky; public static Asset AstralSurfaceFront; public static Asset AstralSurfaceFrontGlow; public static Asset AstralSurfaceClose; public static Asset AstralSurfaceCloseGlow; public static Asset AstralSurfaceMiddle; public static Asset AstralSurfaceMiddleGlow; // Astral Desert Sky/BG public static Asset AstralDesertSurfaceClose; public static Asset AstralDesertSurfaceMiddle; // Astral Snow Sky/BG public static Asset AstralSnowSurfaceMiddle; // Sulphur Sea Sky/BG public static Asset SulphurSeaSky; public static Asset SulphurSeaSkyFront; public static Asset SulphurSeaSurface; public override void OnModLoad() { // Astral Sky/BG AstralSky = ModContent.Request("CalamityMod/Skies/AstralSky"); AstralSurfaceFront = ModContent.Request("CalamityMod/Backgrounds/AstralSurfaceFront"); AstralSurfaceFrontGlow = ModContent.Request("CalamityMod/Backgrounds/AstralSurfaceFrontGlow"); AstralSurfaceClose = ModContent.Request("CalamityMod/Backgrounds/AstralSurfaceClose"); AstralSurfaceCloseGlow = ModContent.Request("CalamityMod/Backgrounds/AstralSurfaceCloseGlow"); AstralSurfaceMiddle = ModContent.Request("CalamityMod/Backgrounds/AstralSurfaceMiddle"); AstralSurfaceMiddleGlow = ModContent.Request("CalamityMod/Backgrounds/AstralSurfaceMiddleGlow"); //Astral Desert Sky/BG AstralDesertSurfaceClose = ModContent.Request("CalamityMod/Backgrounds/AstralDesertSurfaceClose"); AstralDesertSurfaceMiddle = ModContent.Request("CalamityMod/Backgrounds/AstralDesertSurfaceMiddle"); //Astral Snow Sky/BG AstralSnowSurfaceMiddle = ModContent.Request("CalamityMod/Backgrounds/AstralSnowSurfaceMiddle"); // Sulpher Sea Sky/BG SulphurSeaSky = ModContent.Request("CalamityMod/Skies/SulphurSeaSky"); SulphurSeaSkyFront = ModContent.Request("CalamityMod/Skies/SulphurSeaSkyFront"); SulphurSeaSurface = ModContent.Request("CalamityMod/Skies/SulphurSeaSurface"); } public override void Unload() { AstralSky = null; AstralSurfaceFront = null; AstralSurfaceFrontGlow = null; AstralSurfaceClose = null; AstralSurfaceCloseGlow = null; AstralSurfaceMiddle = null; AstralSurfaceMiddleGlow = null; AstralDesertSurfaceClose = null; AstralDesertSurfaceMiddle = null; AstralSnowSurfaceMiddle = null; SulphurSeaSky = null; SulphurSeaSkyFront = null; SulphurSeaSurface = null; } } }