public CommanderContinuedEvent(DateTime timestamp, string commander, Ship ship, GameMode mode, string group, decimal credits) : base(timestamp, NAME)
 {
     this.commander = commander;
     this.Ship = ship;
     this.ship = (ship == null ? null : ship.model);
     this.shipid = (ship == null ? (int?)null : ship.LocalId);
     this.mode = (mode == null ? null : mode.name);
     this.group = group;
     this.credits = credits;
 }
 public static GameMode FromEDName(string from)
 {
     string tidiedFrom = from == null ? null : from.ToLowerInvariant();
     GameMode result = MODES.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom);
     if (result == null)
     {
         Logging.Report("Unknown game mode ED name " + from);
         result = new GameMode(from, tidiedFrom);
     }
     return result;
 }