TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ IsClosedDoor() [1/2]

static bool Terraria.ModLoader.TileLoader.IsClosedDoor ( int type)
inlinestatic

Returns true if the tile is a vanilla or modded closed door.

Definition at line 442 of file TileLoader.cs.

443 {
444 if (GetTile(type) != null)
445 {
446 return TileID.Sets.OpenDoorID[type] > -1;
447 }
448 return type == 10;
449 }
static int[] OpenDoorID
The ID of the tile that a given closed door transforms into when it becomes OPENED....
Definition TileID.cs:515
static ModTile GetTile(int type)
Gets the ModTile instance with the given type. If no ModTile with the given type exists,...

References Terraria.ModLoader.TileLoader.GetTile(), and Terraria.ID.TileID.Sets.OpenDoorID.

+ Here is the call graph for this function: