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

◆ PreDrawInWorld()

static bool Terraria.ModLoader.ItemLoader.PreDrawInWorld ( Item item,
SpriteBatch spriteBatch,
Color lightColor,
Color alphaColor,
ref float rotation,
ref float scale,
int whoAmI )
inlinestatic

Returns the "and" operator on the results of ModItem.PreDrawInWorld and all GlobalItem.PreDrawInWorld hooks.

Definition at line 2216 of file ItemLoader.cs.

2217 {
2218 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
2219 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
2220 //IL_0043: Unknown result type (might be due to invalid IL or missing references)
2221 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
2222 bool flag = true;
2223 if (item.ModItem != null)
2224 {
2225 flag &= item.ModItem.PreDrawInWorld(spriteBatch, lightColor, alphaColor, ref rotation, ref scale, whoAmI);
2226 }
2227 EntityGlobalsEnumerator<GlobalItem> enumerator = HookPreDrawInWorld.Enumerate(item).GetEnumerator();
2228 while (enumerator.MoveNext())
2229 {
2230 GlobalItem g = enumerator.Current;
2231 flag &= g.PreDrawInWorld(item, spriteBatch, lightColor, alphaColor, ref rotation, ref scale, whoAmI);
2232 }
2233 return flag;
2234 }
static GlobalHookList< GlobalItem > HookPreDrawInWorld

References Terraria.ModLoader.ItemLoader.HookPreDrawInWorld, and Terraria.Item.ModItem.

Referenced by Terraria.Main.DrawItem().

+ Here is the caller graph for this function: