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

◆ TileDestroyedListener()

static void Terraria.GameContent.Achievements.TileDestroyedCondition.TileDestroyedListener ( Player player,
ushort tileId )
inlinestaticprivate

Definition at line 40 of file TileDestroyedCondition.cs.

41 {
42 if (player.whoAmI != Main.myPlayer || !_listeners.ContainsKey(tileId))
43 {
44 return;
45 }
47 {
48 item.Complete();
49 }
50 }
static Dictionary< ushort, List< TileDestroyedCondition > > _listeners

References Terraria.GameContent.Achievements.TileDestroyedCondition._listeners, Terraria.Achievements.AchievementCondition.Complete(), Terraria.Main.myPlayer, and Terraria.Entity.whoAmI.

Referenced by Terraria.GameContent.Achievements.TileDestroyedCondition.ListenForDestruction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: