From 9606307e1256032ef50334a67a9132e65c46282b Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 12 Aug 2024 15:27:20 -0700 Subject: [PATCH] Update Season ctor --- MultiversalDiplomacy/Model/Season.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MultiversalDiplomacy/Model/Season.cs b/MultiversalDiplomacy/Model/Season.cs index 1866504..d67f22c 100644 --- a/MultiversalDiplomacy/Model/Season.cs +++ b/MultiversalDiplomacy/Model/Season.cs @@ -49,9 +49,9 @@ public class Season [JsonIgnore] private TimelineFactory Timelines { get; } - private Season(Season? past, int turn, string timeline, TimelineFactory factory) + private Season(string? past, int turn, string timeline, TimelineFactory factory) { - this.Past = past?.ToString(); + this.Past = past; this.Turn = turn; this.Timeline = timeline; this.Timelines = factory; @@ -64,7 +64,7 @@ public class Season /// public static Season MakeRoot() { - TimelineFactory factory = new TimelineFactory(); + TimelineFactory factory = new(); return new Season( past: null, turn: FIRST_TURN, @@ -76,11 +76,11 @@ public class Season /// Create a season immediately after this one in the same timeline. /// public Season MakeNext() - => new(this, Turn + 1, Timeline, Timelines); + => new(this.Designation, Turn + 1, Timeline, Timelines); /// /// Create a season immediately after this one in a new timeline. /// public Season MakeFork() - => new(this, Turn + 1, Timelines.NextTimeline(), Timelines); + => new(this.Designation, Turn + 1, Timelines.NextTimeline(), Timelines); }