tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ModLoader.Instanced< T > Struct Template Reference

The purpose of this struct is to micro-optimize lookups of GlobalX indices by providing these associations without additional retrievals from the heap. More...

Public Member Functions

 Instanced (ushort index, T instance)
 
override string ToString ()
 

Public Attributes

readonly ushort Index
 
readonly T Instance
 

Detailed Description

The purpose of this struct is to micro-optimize lookups of GlobalX indices by providing these associations without additional retrievals from the heap.