~ruther/NosSmooth

ref: f9a0fb8df5fd596e5f45f1094166b06479fc399f NosSmooth/Core/NosSmooth.Game/Data/Info/Health.cs -rw-r--r-- 541 bytes
f9a0fb8d — František Boháček fix: use correct namespaces inside of game project 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
//  Health.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Game.Data.Info;

/// <summary>
/// Represents the health or mana of an entity.
/// </summary>
/// <param name="Amount">The current amount of health.</param>
/// <param name="Maximum">The maximum amount of health.</param>
public record Health(long Amount, long Maximum)
{
    private decimal Percentage => (decimal)Amount / Maximum;
}
Do not follow this link