tModLoader v2024.08
A mod to make and play Terraria mods
NPCWasNearPlayerTracker Class Reference

Inherits IPersistentPerWorldContent, and 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 NPCWasNearPlayerTracker.Load ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)

◆ OnPlayerJoining()

void NPCWasNearPlayerTracker.OnPlayerJoining ( int  playerIndex)

Implements IOnPlayerJoining.

◆ Reset()

void NPCWasNearPlayerTracker.Reset ( )

◆ Save()

void NPCWasNearPlayerTracker.Save ( BinaryWriter  writer)

◆ ValidateWorld()

void NPCWasNearPlayerTracker.ValidateWorld ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)