using CalamityMod.Tiles.SunkenSea; using CalamityMod.Walls; using CalamityMod.Walls.UnsafeWalls; using ReLogic.Reflection; using Terraria.ID; using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; namespace CalamityMod.Systems.Collections { [ReinitializeDuringResizeArrays] public static class CalamityTileSets { private static SetFactory Factory = new SetFactory(TileLoader.TileCount, "CalamityMod/TileID", Search); private static IdDictionary Search = IdDictionary.Create(); /// /// Should only contain modded tiles. If for a tile type, then that tile can be replaced by the Abyss during world generation.
/// Unused by Calamity itself, and is only used for external mods.
/// Defaults to . ///
internal static bool[] CanBeReplacedByAbyssGeneration = Factory.CreateNamedSet("CanBeReplacedByAbyssGeneration") .Description("Allows the tile to be replaced by the Abyss during world generation.") .RegisterBoolSet(); /// /// If for a tile type, it will not perform its BlendMerge in the PostDraw hook, and instead will be drawn after every solid tile has been drawn to the screen.
/// Defaults to . ///
internal static bool[] DrawBlendMergeAfterSolidTile = Factory.CreateNamedSet("DrawBlendMergeAfterSolidTile") .Description("Causes this tile to have blending be drawn after all solid tiles.") .RegisterBoolSet(TileType()); /// /// If for a tile type, it will be considered an Abyss background wall.
/// Used for spawning water when breaking Abyss tiles, discouraging Teleportation Potion teleporting, and spawning Primordial Wyrm when using Potion of Return.
/// Defaults to . ///
internal static bool[] IsAbyssWall = Factory.CreateNamedSet("IsAbyssWall") .Description("Labels this wall as an Abyss wall.") .RegisterBoolSet(WallType(), WallType(), WallType(), WallType(), WallType(), WallType()); } }