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

◆ Update() [2/2]

static void Terraria.ModLoader.BuffLoader.Update ( int buff,
Player player,
ref int buffIndex )
inlinestatic

Definition at line 144 of file BuffLoader.cs.

145 {
147 if (IsModBuff(buff))
148 {
149 GetBuff(buff).Update(player, ref buffIndex);
150 }
152 foreach (DelegateUpdatePlayer hook in hookUpdatePlayer)
153 {
155 {
156 hook(buff, player, ref buffIndex);
157 continue;
158 }
159 break;
160 }
161 }
static bool IsModBuff(int type)
static ModBuff GetBuff(int type)
Gets the ModBuff instance with the given type. If no ModBuff with the given type exists,...
Definition BuffLoader.cs:75
delegate void DelegateUpdatePlayer(int type, Player player, ref int buffIndex)
static DelegateUpdatePlayer[] HookUpdatePlayer
Definition BuffLoader.cs:39

References Terraria.ModLoader.BuffLoader.DelegateUpdatePlayer(), Terraria.ModLoader.BuffLoader.GetBuff(), Terraria.ModLoader.BuffLoader.HookUpdatePlayer, and Terraria.ModLoader.BuffLoader.IsModBuff().

Referenced by Terraria.Player.UpdateBuffs(), and Terraria.NPC.UpdateNPC_BuffSetFlags().

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