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

            harmony.PatchAll();
        }