Save and load map data
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.Serialization;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace GameJamDungeon;
|
||||
|
||||
@@ -12,3 +13,10 @@ public partial record PlayerData
|
||||
[Save("player_inventory")]
|
||||
public required Inventory Inventory { get; init; }
|
||||
}
|
||||
|
||||
[Meta, Id("map_data")]
|
||||
public partial record MapData
|
||||
{
|
||||
[Save("floor_list")]
|
||||
public required List<string> FloorScenes { get; init; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user