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

            harmony.PatchAll();
        }