예제 #1
0
        public BiomeMapForm(Level level)
        {
            _level = level;

            _biomeUtils = new BiomeUtils();
            _biomeUtils.PrecomputeBiomeColors();

            InitializeComponent();

            Closing += (sender, args) =>
            {
                _cancelProgress = true;
            };
        }
예제 #2
0
        public TextureLayerRenderer(TextureRendererConfig config)
        {
            if (config.ResourcePack.Equals("default", System.StringComparison.InvariantCultureIgnoreCase))
            {
                ResourcePack = new Texture.ResourcePack();
            }
            else
            {
                ResourcePack = new Texture.ResourcePack(config.ResourcePack);
            }

            BiomeUtils = new BiomeUtils();
            BiomeUtils.PrecomputeBiomeColors();
        }
예제 #3
0
 public BiomeMapControl(Level level) : base(null)
 {
     Level       = level;
     _biomeUtils = new BiomeUtils();
     _biomeUtils.PrecomputeBiomeColors();
 }
예제 #4
0
 public DefaultLayerRenderer()
 {
     BiomeUtils = new BiomeUtils();
     BiomeUtils.PrecomputeBiomeColors();
 }
예제 #5
0
 public BiomeMapComponent()
 {
     _biomeUtils = new BiomeUtils();
     _biomeUtils.PrecomputeBiomeColors();
 }