tModLoader  0.12 Alpha
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.

Type Constraints
T :GlobalType