Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.Bestiary.NPCKillsTracker Class Reference

Public Member Functions

 NPCKillsTracker ()
 
void RegisterKill (NPC npc)
 
int GetKillCount (NPC npc)
 
void SetKillCountDirectly (string persistentId, int killCount)
 
int GetKillCount (string persistentId)
 
void Save (BinaryWriter writer)
 
void Load (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void ValidateWorld (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void Reset ()
 
void OnPlayerJoining (int playerIndex)
 

Static Public Attributes

const int POSITIVE_KILL_COUNT_CAP = 999999999
 

Private Attributes

object _entryCreationLock = new object()
 
Dictionary< string, int > _killCountsByNpcId
 

Detailed Description

Definition at line 9 of file NPCKillsTracker.cs.


The documentation for this class was generated from the following file: