17 lines
435 B
C#
17 lines
435 B
C#
using EDPlayerJournal.Entries;
|
|
|
|
namespace EDPlayerJournal.CommanderContext;
|
|
|
|
internal class DockedParser : ICommanderParser {
|
|
public void Parse(Entry entry, CommanderContext ctx) {
|
|
DockedEntry? e = entry as DockedEntry;
|
|
|
|
if (e == null) {
|
|
throw new CommanderParserException("invalid entry");
|
|
}
|
|
|
|
ctx.Station = Station.ParseEntry(e);
|
|
ctx.IsDocked = true;
|
|
}
|
|
}
|