mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-13 13:24:34 +01:00
Init enter game
This commit is contained in:
21
Common/Data/Excel/RandomPlotDataExcel.cs
Normal file
21
Common/Data/Excel/RandomPlotDataExcel.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace KianaBH.Data.Excel;
|
||||
|
||||
[ResourceEntity("RandomPlotData.json")]
|
||||
public class RandomPlotDataExcel : ExcelResource
|
||||
{
|
||||
[JsonPropertyName("plotId")] public uint PlotId { get; set; }
|
||||
[JsonPropertyName("startDialogId")] public uint StartDialogId { get; set; }
|
||||
[JsonPropertyName("finishDialogIdList")] public List<uint> FinishDialogIdList { get; set; } = [];
|
||||
|
||||
public override int GetId()
|
||||
{
|
||||
return (int)PlotId;
|
||||
}
|
||||
|
||||
public override void Loaded()
|
||||
{
|
||||
GameData.RandomPlotData.Add(GetId(), this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user