public static PreDrawInWorld ( Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float &rotation, float &scale, int whoAmI ) : bool | ||
item | Item | |
spriteBatch | SpriteBatch | |
lightColor | Color | |
alphaColor | Color | |
rotation | float | |
scale | float | |
whoAmI | int | |
return | bool |
public static bool PreDrawInWorld(Item item, SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
bool flag = true;
if (item.modItem != null && !item.modItem.PreDrawInWorld(spriteBatch, lightColor, alphaColor, ref rotation, ref scale, whoAmI))
{
flag = false;
}
foreach (var hook in HookPreDrawInWorld)
{
if (!hook(item, spriteBatch, lightColor, alphaColor, ref rotation, ref scale, whoAmI))
{
flag = false;
}
}
return flag;
}