14 lines
328 B
C#
14 lines
328 B
C#
using Chickensoft.Introspection;
|
|
using Chickensoft.Serialization;
|
|
|
|
namespace Zennysoft.Ma.Adapter;
|
|
|
|
[Meta, Id("stat_data")]
|
|
public partial record StatData
|
|
{
|
|
[Save("enemies_defeated")]
|
|
public Dictionary<string, int> EnemiesDefeated { get; set; } = [];
|
|
|
|
public int TotalEnemiesDefeated => EnemiesDefeated.Values.Sum();
|
|
}
|