tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker Class Reference

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

Public Member Functions

int GetSacrificeCount (int itemId)
 
void Load (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void MarkContentsDirty ()
 
void OnPlayerJoining (int playerIndex)
 
void RegisterItemSacrifice (int itemId, int amount)
 
void Reset ()
 
void Save (BinaryWriter writer)
 
void SetSacrificeCountDirectly (string persistentId, int sacrificeCount)
 
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)
 

Public Attributes

readonly Dictionary< int, int > SacrificesCountByItemIdCache
 

Static Public Attributes

const int POSITIVE_SACRIFICE_COUNT_CAP = 9999
 

Properties

int LastEditId [get]
 

Member Function Documentation

◆ Load()

void Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker.Load ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)

◆ OnPlayerJoining()

void Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker.OnPlayerJoining ( int  playerIndex)

◆ Reset()

void Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker.Reset ( )

◆ Save()

void Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker.Save ( BinaryWriter  writer)

◆ ValidateWorld()

void Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker.ValidateWorld ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)