Player/Economy/AccountStorage.cs
namespace PlanetMeat;

[Group( "Planet Meat - Player" ), Title( "Account Storage" ), Icon( "savings" )]
public sealed class AccountStorage : Component
{
	[Property] private string AccountIdent { get; set; } = "";

	public void ContributeStorage( double amount )
	{
		Bank.Current.SetProvidedCapacity( Id.ToString(), AccountIdent, amount );
	}

	public double GetStorageWithout()
	{
		return Bank.Current.GetCapacityWithout( Id.ToString(), AccountIdent );
	}

	protected override void OnDestroy()
	{
		base.OnDestroy();
		Bank.Current.RemoveProvidedCapacity( Id.ToString() );
	}
}