Refactor stats
This commit is contained in:
43
Zennysoft.Game.Ma/src/game/GameData.cs
Normal file
43
Zennysoft.Game.Ma/src/game/GameData.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.Serialization;
|
||||
using Zennysoft.Game.Ma;
|
||||
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
[Meta, Id("game_data")]
|
||||
public partial record GameData
|
||||
{
|
||||
[Save("player_data")]
|
||||
public required PlayerData PlayerData { get; init; }
|
||||
|
||||
[Save("map_data")]
|
||||
public required MapData MapData { get; init; }
|
||||
|
||||
[Save("rescued_items")]
|
||||
public required RescuedItemDatabase RescuedItems { get; init; }
|
||||
}
|
||||
|
||||
public partial record PlayerData
|
||||
{
|
||||
[Save("inventory")]
|
||||
public required Inventory Inventory { get; init; }
|
||||
[Save("health_component")]
|
||||
public required HealthComponent HealthComponent { get; init; }
|
||||
[Save("vt_component")]
|
||||
public VTComponent VTComponent { get; init; }
|
||||
[Save("attack_component")]
|
||||
public AttackComponent AttackComponent { get; init; }
|
||||
[Save("defense_component")]
|
||||
public DefenseComponent DefenseComponent { get; init; }
|
||||
[Save("experience_points_component")]
|
||||
public ExperiencePointsComponent ExperiencePointsComponent { get; init; }
|
||||
[Save("luck_component")]
|
||||
public LuckComponent LuckComponent { get; init; }
|
||||
[Save("equipment_component")]
|
||||
public EquipmentComponent EquipmentComponent { get; init; }
|
||||
}
|
||||
|
||||
public partial record MapData
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user