Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.Creative.ItemsSacrificedUnlocksTracker Class Reference

Public Member Functions

 ItemsSacrificedUnlocksTracker ()
 
int GetSacrificeCount (int itemId)
 
void FillListOfItemsThatCanBeObtainedInfinitely (List< int > toObtainInfinitely)
 
bool TryGetSacrificeNumbers (int itemId, out int amountWeHave, out int amountNeededTotal)
 
void RegisterItemSacrifice (int itemId, int amount)
 
void SetSacrificeCountDirectly (string persistentId, int sacrificeCount)
 
void Save (BinaryWriter writer)
 
void Load (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void ValidateWorld (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void Reset ()
 
void OnPlayerJoining (int playerIndex)
 
void MarkContentsDirty ()
 

Static Public Attributes

const int POSITIVE_SACRIFICE_COUNT_CAP = 9999
 

Properties

int LastEditId [get, private set]
 

Private Attributes

Dictionary< string, int > _sacrificeCountByItemPersistentId
 
Dictionary< int, int > _sacrificesCountByItemIdCache
 

Detailed Description

Definition at line 7 of file ItemsSacrificedUnlocksTracker.cs.


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