public void CopyFromSettings(CustomMapSizesSettings settings) { mapHeight = settings.customMapSizeHeight; mapWidth = settings.customMapSizeWidth; mapHeightBuffer = settings.customMapSizeHeightBuffer; mapWidthBuffer = settings.customMapSizeWidthBuffer; }
public CustomMapSizesMain(ModContentPack content) : base(content) { settings = GetSettings <CustomMapSizesSettings>(); var harmony = new Harmony($"{nameof(CustomMapSizes)}.{nameof(CustomMapSizesMain)}"); harmony.PatchAll(); }