Update/rendering logic separation (cherrypicked from commits 9ca3b24, bddcc36 & 9511bae)

This commit is contained in:
Regalis
2016-10-05 20:35:18 +03:00
parent 65006c5da1
commit 54f3d09af4
9 changed files with 395 additions and 323 deletions
@@ -214,10 +214,13 @@ namespace Barotrauma.Items.Components
}
}
public override void UpdateHUD(Character character)
{
Inventory.Update((float)Timing.Step);
}
public override void DrawHUD(SpriteBatch spriteBatch, Character character)
{
if (!drawInventory && false) return;
Inventory.Draw(spriteBatch);
}