tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.EquipLoader Class Reference

This serves as a central place to store equipment slots and their corresponding textures. You will use this to obtain the IDs for your equipment textures. More...

+ Collaboration diagram for Terraria.ModLoader.EquipLoader:

Static Public Member Functions

static EquipTexture GetEquipTexture (EquipType type, int slot)
 Gets the equipment texture for the specified equipment type and ID. More...
 

Static Public Attributes

static readonly EquipType[] EquipTypes = (EquipType[])Enum.GetValues(typeof(EquipType))
 

Static Private Member Functions

static EquipLoader ()
 

Static Private Attributes

static readonly IDictionary< EquipType, int > nextEquip = new Dictionary<EquipType, int>()
 

Detailed Description

This serves as a central place to store equipment slots and their corresponding textures. You will use this to obtain the IDs for your equipment textures.

Definition at line 11 of file EquipLoader.cs.

Constructor & Destructor Documentation

◆ EquipLoader()

static Terraria.ModLoader.EquipLoader.EquipLoader ( )
staticprivate

Definition at line 34 of file EquipLoader.cs.

34 {
35 foreach (EquipType type in EquipTypes) {
36 nextEquip[type] = GetNumVanilla(type);
37 equipTextures[type] = new Dictionary<int, EquipTexture>();
38 }
39 slotToId[EquipType.Head] = new Dictionary<int, int>();
40 slotToId[EquipType.Body] = new Dictionary<int, int>();
41 slotToId[EquipType.Legs] = new Dictionary<int, int>();
42 }
static readonly IDictionary< EquipType, int > nextEquip
Definition: EquipLoader.cs:14
static readonly EquipType[] EquipTypes
Definition: EquipLoader.cs:32
EquipType
This is an enum of all the types of equipment that exist. An equipment type is defined as a type or l...
Definition: EquipType.cs:7

References Terraria.ModLoader.EquipLoader.EquipTypes, and Terraria.ModLoader.EquipLoader.nextEquip.

Member Function Documentation

◆ GetEquipTexture()

Member Data Documentation

◆ EquipTypes

readonly EquipType [] Terraria.ModLoader.EquipLoader.EquipTypes = (EquipType[])Enum.GetValues(typeof(EquipType))
static

◆ nextEquip

readonly IDictionary<EquipType, int> Terraria.ModLoader.EquipLoader.nextEquip = new Dictionary<EquipType, int>()
staticprivate

Definition at line 14 of file EquipLoader.cs.

Referenced by Terraria.ModLoader.EquipLoader.EquipLoader().