更改了Class初始化方式

This commit is contained in:
张子健
2023-12-31 14:12:43 +08:00
parent 6236bc7236
commit bbe3aac169

View File

@@ -58,11 +58,6 @@ namespace ScenesScripts.GalPlot
public Queue<XElement> MainPlot = new();
public class Struct_Choice
{
public Struct_Choice (string Title, string JumpID)
{
this.Title = Title;
this.JumpID = JumpID;
}
public string Title;
public string JumpID;
}
@@ -250,7 +245,7 @@ namespace ScenesScripts.GalPlot
foreach (var ClildItem in PlotData.NowPlotDataNode.Elements())
{
if (ClildItem.Name.ToString() == "Choice")
PlotData.ChoiceText.Add(new Struct_Choice(ClildItem.Value, ClildItem.Attribute("JumpID").Value));
PlotData.ChoiceText.Add(new Struct_Choice { Title = ClildItem.Value, JumpID = ClildItem.Attribute("JumpID").Value };);
}
Gal_Text.StartTextContent(PlotData.NowPlotDataNode.Attribute("Content").Value, _nodeinfo.Name, _nodeinfo.Affiliation, () =>