Update Season ctor
This commit is contained in:
parent
87685ec744
commit
9606307e12
@ -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
|
||||
/// </summary>
|
||||
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.
|
||||
/// </summary>
|
||||
public Season MakeNext()
|
||||
=> new(this, Turn + 1, Timeline, Timelines);
|
||||
=> new(this.Designation, Turn + 1, Timeline, Timelines);
|
||||
|
||||
/// <summary>
|
||||
/// Create a season immediately after this one in a new timeline.
|
||||
/// </summary>
|
||||
public Season MakeFork()
|
||||
=> new(this, Turn + 1, Timelines.NextTimeline(), Timelines);
|
||||
=> new(this.Designation, Turn + 1, Timelines.NextTimeline(), Timelines);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user