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

Inherits IPersistentPerWorldContent, and IOnPlayerJoining.

Public Member Functions

void FillListOfItemsThatCanBeObtainedInfinitely (List< int > toObtainInfinitely)
 
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)
 
bool TryGetSacrificeNumbers (int itemId, out int amountWeHave, out int amountNeededTotal)
 
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)
 

Static Public Attributes

const int POSITIVE_SACRIFICE_COUNT_CAP = 9999
 

Properties

int LastEditId [get]
 

Member Function Documentation

◆ Load()

void ItemsSacrificedUnlocksTracker.Load ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)

◆ OnPlayerJoining()

void ItemsSacrificedUnlocksTracker.OnPlayerJoining ( int  playerIndex)

Implements IOnPlayerJoining.

◆ Reset()

void ItemsSacrificedUnlocksTracker.Reset ( )

◆ Save()

void ItemsSacrificedUnlocksTracker.Save ( BinaryWriter  writer)

◆ ValidateWorld()

void ItemsSacrificedUnlocksTracker.ValidateWorld ( BinaryReader  reader,
int  gameVersionSaveWasMadeOn 
)