Files
CalamityModPublic/Systems/Collections/CalamityTileSets.cs
T
2026-02-02 17:43:38 -05:00

37 lines
1.9 KiB
C#

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
{
public static SetFactory Factory = new SetFactory(TileLoader.TileCount, "CalamityMod/TileID", Search);
public static IdDictionary Search = IdDictionary.Create<TileID, int>();
/// <summary>
/// Should only contain modded tiles. If <see langword="true"/> for a tile type, then that tile can be replaced by the Abyss during world generation.<br/>
/// Unused by Calamity itself, and is only used for external mods to add to through reflection.<br/>
/// Defaults to <see langword="false"/>.
/// </summary>
public static bool[] CanBeReplacedByAbyssGeneration = Factory.CreateBoolSet();
/// <summary>
/// If <see langword="true"/> 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.<br/>
/// Defaults to <see langword="false"/>.
/// </summary>
public static bool[] DrawBlendMergeAfterSolidTile = Factory.CreateBoolSet(TileType<SeaPrism>());
/// <summary>
/// If <see langword="true"/> for a tile type, it will be considered an Abyss background wall for various effects.
/// Defaults to <see langword="false"/>
/// </summary>
public static bool[] IsAbyssWall = Factory.CreateBoolSet(WallType<UnsafeSulphurousShaleWall>(), WallType<UnsafeAbyssGravelWall>(), WallType<PyreMantleWall>(), WallType<UnsafeVoidstoneWall>(), WallType<HardenedSulphurousSandstoneWall>(), WallType<UnsafeSulphurousSandstoneWall>());
}
}