TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ EquipFrameEffects()

static void Terraria.ModLoader.EquipLoader.EquipFrameEffects ( Player player)
inlinestatic

Hook Player.PlayerFrame Calls each of the item's equipment texture's FrameEffects hook.

Definition at line 354 of file EquipLoader.cs.

355 {
356 EquipType[] equipTypes = EquipTypes;
357 foreach (EquipType type in equipTypes)
358 {
359 int slot = GetPlayerEquip(player, type);
360 GetEquipTexture(type, slot)?.FrameEffects(player, type);
361 }
362 }
static int GetPlayerEquip(Player player, EquipType type)
static EquipTexture GetEquipTexture(EquipType type, int slot)
Gets the equipment texture for the specified equipment type and ID.
static readonly EquipType[] EquipTypes
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, Terraria.ModLoader.EquipLoader.GetEquipTexture(), and Terraria.ModLoader.EquipLoader.GetPlayerEquip().

Referenced by Terraria.ModLoader.CombinedHooks.PlayerFrameEffects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: