GameResource/WeaponResource.cs
namespace Battlebugs;

[AssetType( Category = "Battlebugs", Extension = "weapon", Name = "Weapon" )]
public class WeaponResource : GameResource
{
	public string Name { get; set; } = "Rock";
	[TextArea] public string Description { get; set; } = "";
	[ImageAssetPath] public string Icon { get; set; }

	[Group( "Stats" )] public int StartingAmount { get; set; } = 1;
	[Group( "Stats" )] public int Cost { get; set; } = 20;
	[Group( "Attack" )] public RangedFloat AmountFired { get; set; } = new RangedFloat( 1 );
	[Group( "Attack" )] public RangedFloat Damage { get; set; } = new RangedFloat( 8 );
	[Group( "Attack" )] public float Spray { get; set; } = 1f;
	[Group( "Attack" )] public GameObject Prefab { get; set; }

	protected override Bitmap CreateAssetTypeIcon( int width, int height )
	{
		return CreateSimpleAssetTypeIcon( "whatshot", width, height );
	}
}