public static PreDrawInInventory ( Item item, SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale ) : bool | ||
item | Item | |
spriteBatch | SpriteBatch | |
position | Vector2 | |
frame | Rectangle | |
drawColor | Color | |
itemColor | Color | |
origin | Vector2 | |
scale | float | |
리턴 | bool |
public static bool PreDrawInInventory(Item item, SpriteBatch spriteBatch, Vector2 position, Rectangle frame,
Color drawColor, Color itemColor, Vector2 origin, float scale)
{
bool flag = true;
foreach (var hook in HookPreDrawInInventory)
{
if (!hook(item, spriteBatch, position, frame, drawColor, itemColor, origin, scale))
{
flag = false;
}
}
if (item.modItem != null && !item.modItem.PreDrawInInventory(spriteBatch, position, frame, drawColor, itemColor, origin, scale))
{
flag = false;
}
return flag;
}