tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.Bestiary.NPCWasNearPlayerTracker Class Reference

Inherits Terraria.GameContent.IPersistentPerWorldContent, and Terraria.GameContent.IOnPlayerJoining.

Public Member Functions

bool GetWasNearbyBefore (NPC npc)
 
bool GetWasNearbyBefore (string persistentIdentifier)
 
void Load (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void OnPlayerJoining (int playerIndex)
 
void PrepareSamplesBasedOptimizations ()
 
void RegisterWasNearby (NPC npc)
 
void Reset ()
 
void Save (BinaryWriter writer)
 
void ScanWorldForFinds ()
 
void SetWasSeenDirectly (string persistentId)
 
void ValidateWorld (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void Load (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void Reset ()
 
void Save (BinaryWriter writer)
 
void ValidateWorld (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void OnPlayerJoining (int playerIndex)
 

Member Function Documentation

◆ Load()

void Terraria.GameContent.Bestiary.NPCWasNearPlayerTracker.Load ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)

◆ OnPlayerJoining()

void Terraria.GameContent.Bestiary.NPCWasNearPlayerTracker.OnPlayerJoining ( int  playerIndex)

◆ Reset()

void Terraria.GameContent.Bestiary.NPCWasNearPlayerTracker.Reset ( )

◆ Save()

void Terraria.GameContent.Bestiary.NPCWasNearPlayerTracker.Save ( BinaryWriter  writer)

◆ ValidateWorld()

void Terraria.GameContent.Bestiary.NPCWasNearPlayerTracker.ValidateWorld ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)