ui/richtext/RichTextAmmo.cs

A UI rich text component class for ammo labels. It matches the word 'Ammo' with a RichTextPanel attribute and defines one stat entry showing the player's MaxAmmoCount formatted as an integer.

Networking
[RichTextPanel( @"\b[Aa]mmo\b" )]
public class RichTextAmmo : RichTextBase
{
	//public override string Icon => "drag_indicator";
	public override RichTextStatEntry[] Stats => [
		new(PlayerStat.MaxAmmoCount, StatFormat.Int)
	];
}