public string ToSaveableString(int height, int dirs) { RawHotspot rawHotspot = ToRawHotspot(dirs); return(rawHotspot.ToString()); }
public static Hotspot FromRawHotspot(RawHotspot rawHotspot, DirCount dirs) { int dirCount = (int)dirs; return(new Hotspot(rawHotspot.X, rawHotspot.Y, rawHotspot.Index % dirCount, rawHotspot.Index / dirCount)); }