punish v6.8.18.0
This commit is contained in:
commit
e786325cda
322 changed files with 554232 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Questionable.Model.Questing;
|
||||
|
||||
public sealed class QuestSequence
|
||||
{
|
||||
public byte Sequence { get; set; }
|
||||
|
||||
public string? Comment { get; set; }
|
||||
|
||||
public List<QuestStep> Steps { get; set; } = new List<QuestStep>();
|
||||
|
||||
public QuestStep? FindStep(int step)
|
||||
{
|
||||
if (step < 0 || step >= Steps.Count)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return Steps[step];
|
||||
}
|
||||
|
||||
public QuestStep? LastStep()
|
||||
{
|
||||
return Steps.LastOrDefault();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue