public void SetUserShipName(JournalSetUserShipName e) { ShipInformation sm = EnsureShip(e.ShipID); // this either gets current ship or makes a new one. Ships[e.ShipID] = sm.Set(e.Ship, e.ShipFD, e.ShipName, e.ShipIdent); currentid = e.ShipID; // must be in it to do this }
public void SetUserShipName(JournalSetUserShipName e) { string sid = Key(e.ShipFD, e.ShipID); ShipInformation sm = EnsureShip(sid); // this either gets current ship or makes a new one. Ships[sid] = sm.Set(e.Ship, e.ShipFD, e.ShipName, e.ShipIdent); // will clone if data changed.. currentid = sid; // must be in it to do this }