Esempio n. 1
0
        public void TestCase(int width, int height, int expectation)
        {
            var image = new TerrainImage(mock.Object, width, height, 0.1);

            Assert.IsInstanceOf(typeof(TerrainImage), image);
            Assert.IsInstanceOf(typeof(Image <Rgba32>), image.CreateImage());
            mock.Verify(stub => stub.Noise(It.IsAny <double>(), It.IsAny <double>()), Times.Exactly(expectation));
        }
Esempio n. 2
0
        public GameWording(string locale, Dictionary <string, string> data) : base(locale, data)
        {
            game_mode     = new GameMode(this, nameof(game_mode));
            start_mode    = new StartMode(this, nameof(start_mode));
            scenario_mode = new ScenarioMode(this, nameof(scenario_mode));

            terrain         = new Terrain(this, nameof(terrain));
            region          = new Region(this, nameof(region));
            culture         = new Culture(this, nameof(culture));
            religion        = new Religion(this, nameof(religion));
            road            = new Road(this, nameof(road));
            stronghold_type = new StrongholdType(this, nameof(stronghold_type));

            force = new Force(this, nameof(force));

            tile_map_image_info = new TileMapImageInfo(this, nameof(tile_map_image_info));
            terrain_image       = new TerrainImage(this, nameof(terrain_image));

            scene_title           = new SceneTitle(this, nameof(scene_title));
            scene_game            = new SceneGame(this, nameof(scene_game));
            scene_edit_game_world = new SceneEditGameWorld(this, nameof(scene_title));
        }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(RegionID.GetHashCode() ^ TerrainImage.GetHashCode());
 }