Gun Magazine Ammo


Combat Component stores information about current magazine ammo data for each weapon.
For that it uses array of structs of type F_CachedAmmoData.

These are functions to modify magazine ammo of gun.

For example if player fires a gun, it removes 1 ammo from magazine.


However Combat Component doesnt store info about total ammo, its responsibility of InventoryComponent.
Combat Component only has a helper flag telling if owner has any spare ammo in inventory.

This flag gets updated by owner whenever ammo item in inventory has changed.


Widget WB_GunAmmoData is used to display current and total ammo of currently equipped gun.
It reads those values from CombatComponent and InventoryComponent.