Files
basic-computer-games/83_Stock_Market/csharp/src/Assets.cs
Chris Reuter d26dbf036a Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment.
This change fixes that.
2021-11-21 18:30:21 -05: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; }
}
}