mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -08:00
21 lines
469 B
C#
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; }
|
|
}
|
|
}
|