Files
basic-computer-games/83_Stock_Market/csharp/Assets.cs
2022-01-17 11:56:20 +02:00

21 lines
469 B
C#

using System.Collections.Immutable;
namespace Game
{
/// <summary>
/// Stores the player's assets.
/// </summary>
public record Assets
{
/// <summary>
/// Gets the player's amount of cash.
/// </summary>
public double Cash { get; init; }
/// <summary>
/// Gets the number of stocks owned of each company.
/// </summary>
public ImmutableArray<int> Portfolio { get; init; }
}
}