/// <summary> /// Saves the sector state to a memento. /// </summary> /// <returns>The memento of the current sector state.</returns> public SerializableSector SaveToMemento() { return(new SerializableSector { unit = unit?.SaveToMemento(), landmark = landmark?.SaveToMemento(), ownerId = owner?.Id ?? -1, PVC = pvc }); }