5dplomacy/MultiversalDiplomacy/Model/TimelineFactory.cs

17 lines
297 B
C#
Raw Normal View History

2022-11-10 18:11:44 +00:00
namespace MultiversalDiplomacy.Model;
/// <summary>
/// A ratchet counter for creating timelines.
/// </summary>
public class TimelineFactory
{
private int nextTimeline;
public TimelineFactory()
{
nextTimeline = 0;
}
public Timeline Next() => new(nextTimeline++);
}