Weapons/AmmoResource.cs
[AssetType( Name = "Ammo", Extension = "ammo", Category = "Deathmatch" )]
public class AmmoResource : GameResource
{
/// <summary>
/// The type of ammo this resource represents
/// </summary>
[Property, Group( "Ammo" )]
public string AmmoType { get; set; }
/// <summary>
/// The maximum amount of ammo that can be held
/// </summary>
[Property, Group( "Ammo" )]
public int MaxAmount { get; set; }
[Property]
public Texture Icon { get; set; }
protected override Bitmap CreateAssetTypeIcon( int width, int height )
{
return CreateSimpleAssetTypeIcon( "📦", width, height, Color.Parse( $"#f54248" ) );
}
}