A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Map: a builder for the opt-in hex-tile map (regions, overrides, Hex Painter), stacked on #1120 (refs #18) (#1131)
pixelrenderai-hash61a20ed3de51
diff --git a/changelog.d/hex-painter-1131.md b/changelog.d/hex-painter-1131.mdnew file mode 100644index 000000000..1bfa1b40b--- /dev/null+++ b/changelog.d/hex-painter-1131.md@@ -0,0 +1,14 @@+- A map builder for the opt-in hex-tile map: region recipes (`tools/hex_tiles/regions.yaml`) lay out the whole map in+ one command (the `israel` board: 920 hexes, the game's settlements and the 1948 localities as towns and villages by+ type and population, the traced 1948 main roads), give each region its own tiles and ground and its own trees round+ the edge (oak and pine in the north, citrus and date palm on the coast, acacia and desert rock in the south). Hand+ edits live in `<board>.overrides.json`, in the shape of the map editor's `content/map/overrides.yaml` but outside+ `content/` (presentation only: tile, ground, unit, facing, region), and survive regeneration; boards also follow the+ map editor's terrain and location overrides. The editor-only Hex Painter (Statecraft/Hex Tiles/Hex Painter) picks a+ hex in the Scene view, changes its tile, ground, unit, facing or region, rebuilds just that hex and writes the edit+ there. Still presentation only and off by default (refs #18).++### Fixed+- Generated Hex Painter meshes, materials and terrain data are released when a preview is destroyed after an editor script reload (refs #18).+- Editor Hex Painter previews stay out of scene saves while remaining discoverable for the next load; ordinary scene objects and terrain picking are preserved (refs #18).+- Rebuilding a hex in the opt-in Hex Painter releases the removed unit's generated material while preserving shared assets and untouched units (refs #18).diff --git a/docs/hex-tiles/README.md b/docs/hex-tiles/README.mdindex df3af476c..7dadecfc3 100644--- a/docs/hex-tiles/README.md+++ b/docs/hex-tiles/README.md@@ -51,8 +51,113 @@ The generator does the following:- **Every other hex:** a tile chosen by terrain, biome and coast.- **Connections:** roads between the main towns along hex lines, and the Yarkon.-The output is a plain file: edit it by hand afterwards, and re-running overwrites it. `tel_aviv` stays the small test-board.+The output is a plain file, and re-running overwrites it. Hand edits that should survive a re-run go in the board's+overrides file (see "Painting hexes by hand"). `tel_aviv` stays the small test board.++## Laying out the whole map: region recipes++`tools/hex_tiles/regions.yaml` holds the recipes, as data. One command lays out every hex of the game map from it:++```bash+python3 tools/hex_tiles/make_board.py --regions tools/hex_tiles/regions.yaml --id israel --all --env-ring 1+```++That writes `Boards/israel.json`: 920 hexes in seven regions. Capture it with `HexBoardCapture -board israel+-boardOnly`, or open it in the Hex Painter. In the game it would be `?hex-tiles=israel`, but that has not been tried yet:+it builds 920 tiles on the real map, so check the load time before relying on it. `--regions` needs PyYAML. With+`--regions`, the generator works like this:++- **Regions.** Galilee and the north, the coastal plain, the central hills, Jerusalem, the Negev, the Arava and the+ Jordan valley. Each is a `polygon` of `[lon, lat]` points, or a `hexes` list of `q, r` pairs. A hex goes to:+ - the first region that lists it;+ - else the first region whose polygon holds its centre;+ - else `defaults.region`.++ The polygons are landscape zones drawn roughly by eye. They are not borders.+- **Ground.** The region's `ground` table maps each biome of `content/map/hexes.json` to a ground layer, over the+ defaults.+- **Settlements.** First the game's 25 settlements. Then the 1948 localities (`content/map/localities_1948.tsv`) of at+ least `min_population` people, largest first. Each settlement takes one hex, and a hex that is already taken keeps its+ first owner. The tile is chosen by the region's `settlements` rules, then the defaults'. A rule can match on:+ - `id`;+ - `type` (city, town, arab_town, village, kibbutz, moshav);+ - `tier` (from `tiers`, by the 1945 population);+ - `terrain`;+ - `biome`.+- **Other land.** The region's `nature` rules, then the defaults'. A rule can match on `terrain`, `biome` and `coastal`.+ It sets a `prototype`, or a weighted `pick` drawn by a stable per-hex value, and it may set a `ground`.+- **Roads.** They follow the traced 1948 main roads (`content/map/route_paths_1948.tsv`), hex centre to hex centre.+- **Environment.** `--env-ring N` makes the land within N hexes of the board's edge environment: landscape with no tiles+ and no hex lines. Each region's `flora` sets the trees and rocks on its environment hexes (see below).+- **Settings.** Without `--regions` the generator keeps its built-in choices. `central_israel` and `tel_aviv_crop`+ regenerate exactly as before.++### Environment trees by region++The board file carries a `regions` list, and each hex names its `region`. `HexEnvironment` reads the region's+dress:++- `flat` and `hills` species, each with a `model`, a stand-in `shape` (tree, pine, palm, rock or box) and a `weight`.+ The species are picked by a noise field, so woods of one kind clump.+- `density`, a multiplier on the woods.+- a `rock` model, its `rockChance` (two tries a hex), and `rocksOnFlat`.++The recipes plant, by region:++| Region | Trees | Rocks |+|---|---|---|+| North | Tabor oak and Aleppo pine | |+| Coast | Citrus and date palm | |+| Negev and Arava | Acacia | Desert rock |+| Jordan valley | Date palm and acacia | |+| Jerusalem | Olive, cypress and pine | |++A hex with no region, as on every board made before regions, gets the built-in mix: olive and carob on the flat, oak+and pine on hills, limestone outcrops on hills.++## Painting hexes by hand: overrides and the Hex Painter++**Overrides.** Hand edits that must survive regeneration go in `Boards/<id>.overrides.json`, beside the board. The file+has the same shape as the map editor's `content/map/overrides.yaml` (#1099): one list per field of `{hex: {q, r}, value}`,+and no hex appears twice in a list.++```json+{ "board": "israel", "prototype": [ { "hex": { "q": -1, "r": 18 }, "value": "kibbutz" } ], "region": [] }+```++- **The fields are hex-tile presentation only:**+ - `prototype`, the tile;+ - `ground`, its ground layer;+ - `unit` and `facing` (degrees, as a string), the unit standing on it;+ - `region`, whose trees dress an environment hex.+- **The split with the map editor (#1009).** Terrain, control and settlement locations belong to the map editor, in+ `content/map/overrides.yaml`. That file is in the content hash and the sim reads it. The hex overrides stay out of+ `content/`, so painting a hex never moves the content hash.+- **The generator reads both files:**+ - It applies the map editor's terrain (a hex's biome) and location moves (a settlement's hex) first, so boards follow+ the game map.+ - It applies the hex edits last, on every run, and reports any edit whose hex is not on the board.+- **`HexBoard.Load` applies the hex edits again at load,** so an edit shows in the game before the board is+ regenerated.++**The Hex Painter** (**Statecraft/Hex Tiles/Hex Painter**, editor only):++1. Pick a board and press **Load into scene**. It builds the board in the open scene, one object per hex. **Add the+ captures' light and grade** lights an empty scene.+2. Click a hex in the Scene view. It is outlined, and the window shows its terrain, region and note.+3. Change its prototype, ground, unit, facing or region. The painter rebuilds only that hex (its pieces, its trees, its+ unit, and the ground round it) and writes the edit to the board's overrides file. It does not edit terrain, control or+ locations: those are the map editor's (#1009).++The board in the scene is never saved: load it again after a script reload.++To check the painter's path from the command line, use `HexPainterCapture`. It loads the board, shoots the hex, makes+one edit, and shoots it again. The edit goes to a scratch overrides file in the capture folder unless `-overrides` names+another:++```bash+Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod Statecraft.HexTiles.Painter.HexPainterCapture.Run -board israel -hex -3,19 -field prototype -value tel_aviv_city_mixed+```## Adding a prototype hex (the contributor workflow)@@ -159,7 +264,9 @@ Render a single prototype on the board with its ground and neighbours. The outpuUnity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity -executeMethod Statecraft.HexTiles.Capture.HexBoardCapture.Run -prototype your_id```-Leave out `-prototype` to render the whole board, which adds `board.png`. Add `-on <tile>` to try your prototype on+Leave out `-prototype` to render the whole board, which adds `board.png`. Each prototype and unit is shot once, at its+last hex in the board file. `-boardOnly` skips those shots. A board too large for the standard shot (the whole country)+is framed whole. Add `-on <tile>` to try your prototype onanother tile's hex without editing the board file, for example `-prototype tel_aviv_city_mixed -on tel_aviv_city`(an A/B variant on the city's hex). The stats line lists:@@ -279,7 +386,12 @@ when ffmpeg is on PATH. `-captureDir` and `-captureSize 1920x1080` are optional.| `Core/HexBoard.cs` | Board files, the Civ-style ground (`HexBoardSurface`), ground layers || `Core/HexBoardBuilder.cs` | Terrain, sea, rendering, tile edges, per-tile reports || `Core/HexUnits.cs` | `HexUnit`, `HexUnitMember`, and `HexUnitMotion` (moving a unit along hex centres) |+| `Core/HexBoardOverrides.cs` | A board's hand edits (`<id>.overrides.json`) || `Capture/HexBoardCapture.cs` | The capture command (`-prototype <id>`, plus `-on <tile>` to try it on another tile's hex) |+| `Painter/HexPainterWindow.cs` | The Hex Painter window |+| `Painter/HexPainter.cs` | The painter's write-back and one-hex rebuild |+| `Painter/HexPainterCapture.cs` | The painter's path from the command line |+| `tools/hex_tiles/regions.yaml` | The region recipes || `Capture/HexUnitMoveCapture.cs` | The unit-move video || `Tests/HexPrototypeTests.cs` | The contract tests || `Prototypes/` | One file per prototype hex (`TelAvivCity.cs` is the reference) |diff --git a/tools/hex_tiles/make_board.py b/tools/hex_tiles/make_board.pyindex 651476556..433c811e8 100644--- a/tools/hex_tiles/make_board.py+++ b/tools/hex_tiles/make_board.py@@ -11,14 +11,27 @@ unity/Assets/Resources/HexTiles/Boards/<id>.json for the hex-tile layer (docs/heterrain, biome and the coast with a stable per-hex draw;- roads between the main towns along hex lines, the Yarkon along hex edges, and the board's standing units.-The output is a plain file: Tal edits it by hand after generating, and re-running overwrites it.+With --regions (tools/hex_tiles/regions.yaml) the choices come from region recipes instead: each region (a lat/lon+polygon or a list of hexes) maps terrain, biome, settlement type and population tier to a prototype and a ground+layer, and names the trees and rocks of its environment hexes. The settlements are then the game's 25 plus the 1948+localities (content/map/localities_1948.tsv), and the roads follow the traced 1948 main roads+(content/map/route_paths_1948.tsv). One command lays out the whole country:++ python3 tools/hex_tiles/make_board.py --regions tools/hex_tiles/regions.yaml --id israel --all --env-ring 1++Hand edits that must survive regeneration go in the sibling <id>.overrides.json (the Hex Painter writes it), applied+last. It has the shape of the map editor's content/map/overrides.yaml (#1099): one list per field (prototype, ground,+unit, facing, region) of {hex: {q, r}, value}. It is presentation only and stays out of content/, so painting a hex never+moves the content hash. The map editor's own terrain and location overrides are read too, so boards follow the map.python3 tools/hex_tiles/make_board.py [--id central_israel] [--lat 31.62 32.48] [--lon 34.4 35.42]"""-import argparse, json, math, os, re, sys+import argparse, json, os, re, sysROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))+BOARDS = os.path.join(ROOT, 'unity/Assets/Resources/HexTiles/Boards')NEIGHBOURS = [(1, 0), (1, -1), (0, -1), (-1, 0), (-1, 1), (0, 1)]+OVERRIDE_FIELDS = ('prototype', 'ground', 'unit', 'facing', 'region')def hex_distance(a, b):@@ -56,6 +69,31 @@ def settlements(path):return [s for s in out if 'lon' in s and 'lat' in s]+def populations(path):+ """id -> 1945 population from settlement_population_1945.yaml (simple keys only)."""+ out, cur = {}, None+ for line in open(path, encoding='utf-8'):+ m = re.match(r'^- id:\s*(\S+)', line)+ if m: cur = m.group(1); continue+ m = re.match(r'^\s+population:\s*(\d+)', line)+ if m and cur: out[cur] = int(m.group(1))+ return out+++def localities(path):+ """The 1948 places of localities_1948.tsv (its 'place' rows; the camp rows have no point): id, lon, lat, type,+ population."""+ out, cols = [], None+ for line in open(path, encoding='utf-8'):+ row = line.rstrip('\n').split('\t')+ if row[0] == '#place': cols = row; continue+ if row[0] != 'place' or cols is None: continue+ d = dict(zip(cols, row))+ out.append({'id': d['id'], 'lon': float(d['lon']), 'lat': float(d['lat']), 'type': d['type'] or 'village',+ 'population': int(d['population'] or 0)})+ return out++def draw(q, r, salt):"""A stable value in [0, 1) per hex (no RNG state)."""x = (q * 73856093) ^ (r * 19349663) ^ (salt * 83492791)@@ -66,6 +104,8 @@ def draw(q, r, salt):# A settlement's own tile: by id first, then by type. Jewish towns read as moshava colonies, Arab towns as stone villages.SETTLEMENT_TILE = {'tel_aviv': 'tel_aviv_city', 'jaffa': 'jaffa_old_city', 'jerusalem': 'jerusalem_old_city'}TYPE_TILE = {'city': 'moshava_village', 'town': 'moshava_village', 'arab_town': 'arab_village', 'kibbutz': 'kibbutz', 'moshav': 'kibbutz'}+# Tiles that want low ground: on a mountain hex they lower it to hills.+LOWLAND = ('wheat_fields', 'citrus_orchard', 'grazing_land', 'moshava_village', 'kibbutz', 'tel_aviv_city', 'jaffa_old_city', 'coastal_dunes')def terrain_of(h):@@ -90,21 +130,201 @@ def nature_tile(h, terrain, coastal):return 'wheat_fields' if u < 0.42 else ('citrus_orchard' if u < 0.75 else 'grazing_land')-def main():+def _yaml(path):+ """YAML 1.2 core schema, as every repo tool reads YAML (tools/yaml12.py; needs pyyaml, which CI's tools tests have)."""+ sys.path.insert(0, os.path.join(ROOT, 'tools'))+ import yaml12+ return yaml12.load_path(path)+++# --- Region recipes ---------------------------------------------------------------------------------------------------++def in_polygon(lon, lat, poly):+ """Even-odd rule; poly is [[lon, lat], ...]."""+ inside, n = False, len(poly)+ for i in range(n):+ x0, y0 = poly[i]; x1, y1 = poly[(i + 1) % n]+ if (y0 > lat) != (y1 > lat) and lon < x0 + (lat - y0) * (x1 - x0) / (y1 - y0): inside = not inside+ return inside+++class Recipes:+ """regions.yaml: the defaults and the regions, in file order. A hex is in the first region that lists it by q/r,+ else the first whose polygon holds its centre, else the default region."""++ def __init__(self, data):+ self.defaults = data.get('defaults', {})+ self.regions = data['regions']+ self.by_id = {r['id']: r for r in self.regions}+ self.order = [r['id'] for r in self.regions]+ self.default_region = self.defaults.get('region', self.order[-1])+ self.listed = {}+ for reg in self.regions:+ hs = reg.get('hexes', [])+ for i in range(0, len(hs), 2): self.listed.setdefault((hs[i], hs[i + 1]), reg['id'])+ self.tiers = sorted(self.defaults.get('tiers', {'village': 0}).items(), key=lambda kv: -kv[1])++ @staticmethod+ def load(path):+ return Recipes(_yaml(path))++ def region_of(self, h):+ k = (h['q'], h['r'])+ if k in self.listed: return self.listed[k]+ for reg in self.regions:+ if 'polygon' in reg and in_polygon(h['lon'], h['lat'], reg['polygon']): return reg['id']+ return self.default_region++ def tier_of(self, population):+ for name, least in self.tiers:+ if (population or 0) >= least: return name+ return self.tiers[-1][0]++ def rules(self, region, key):+ """The region's rules for key (settlements or nature), then the defaults'."""+ return list(self.by_id[region].get(key, [])) + list(self.defaults.get(key, []))++ def ground(self, region, biome):+ table = dict(self.defaults.get('ground', GROUND)); table.update(self.by_id[region].get('ground', {}))+ return table.get(biome, table.get('default', 'grass'))+++def _matches(rule, **facts):+ for key, value in facts.items():+ if key not in rule: continue+ want = rule[key] if isinstance(rule[key], list) else [rule[key]]+ if value not in want: return False+ return True+++def _pick(rule, q, r):+ """A rule's prototype, or a weighted pick from its 'pick' list with the hex's stable draw."""+ if 'prototype' in rule: return rule['prototype']+ total = sum(w for _, w in rule['pick'])+ u, acc = draw(q, r, 1) * total, 0.0+ for proto, w in rule['pick']:+ acc += w+ if u < acc: return proto+ return rule['pick'][-1][0]+++def apply_rules(rules, q, r, **facts):+ """The first rule whose keys all match the facts: its prototype (or pick) and its ground, if it sets one."""+ for rule in rules:+ if _matches(rule, **facts): return _pick(rule, q, r), rule.get('ground')+ raise ValueError(f'no rule matches hex ({q},{r}) {facts}')+++def flora_entry(region):+ """The board's copy of a region's environment dress (BoardRegion in HexBoard.cs)."""+ f = region.get('flora', {})+ def species(items): return [{'model': s['model'], 'shape': s.get('shape', 'tree'), 'weight': float(s.get('weight', 1.0))} for s in items]+ rock = f.get('rock', {})+ return {'id': region['id'], 'title': region.get('title', region['id']), 'density': float(f.get('density', 1.0)),+ 'flat': species(f.get('flat', [])), 'hills': species(f.get('hills', [])),+ 'rock': rock.get('model', 'sandbox:limestone*'), 'rockChance': float(rock.get('chance', 0.6)), 'rocksOnFlat': bool(rock.get('on_flat', False))}+++def route_roads(cells, kinds, before):+ """Roads along the traced 1948 routes (route_paths_1948.tsv): each route's points snapped to their nearest board+ land hex, gaps joined along hex lines; only routes of the given kinds that the map draws before the given date."""+ roads = []+ land = {k: h for k, h in cells.items() if h['land']}+ for line in open(os.path.join(ROOT, 'content/map/route_paths_1948.tsv'), encoding='utf-8'):+ row = line.rstrip('\n').split('\t')+ if row[0] != 'route' or row[2] not in kinds or (row[4] and row[4] > before): continue+ hexes = []+ def flush():+ if len(hexes) >= 2: roads.append({'note': row[1], 'hexes': [v for p in hexes for v in p]})+ for pt in row[-1].split(';'):+ lon, lat = map(float, pt.split())+ k = min(land, key=lambda k: (land[k]['lon'] - lon) ** 2 + (land[k]['lat'] - lat) ** 2)+ if (land[k]['lon'] - lon) ** 2 + (land[k]['lat'] - lat) ** 2 > 0.05 ** 2: # off the board+ flush(); hexes = []; continue+ if hexes and hexes[-1] == k: continue+ if hexes and hex_distance(hexes[-1], k) > 1:+ hexes += [p for p in hex_line(hexes[-1], k)[1:-1] if p in land]+ hexes.append(k)+ flush()+ return roads+++# --- Overrides --------------------------------------------------------------------------------------------------------++def overrides_path(board_path):+ """<board>.overrides.json beside <board>.json."""+ return (board_path[:-len('.json')] if board_path.endswith('.json') else board_path) + '.overrides.json'+++def apply_overrides(board, overrides):+ """A board's hand edits, in the shape of content/map/overrides.yaml (#1099): one list per field (prototype, ground,+ unit, facing, region) of {hex: {q, r}, value}, no hex twice in a list; facing is degrees as a string. Returns the+ edits whose hex the board does not have (reported, not applied)."""+ at = {(e['q'], e['r']): e for e in board['hexes']}+ unknown = [k for k in overrides if k != 'board' and k not in OVERRIDE_FIELDS]+ if unknown: raise ValueError(f"override list '{unknown[0]}' is not one of {OVERRIDE_FIELDS}")+ missing = []+ for field in OVERRIDE_FIELDS:+ seen = set()+ for ed in overrides.get(field, []):+ k = (ed['hex']['q'], ed['hex']['r'])+ if k in seen: raise ValueError(f'a second {field} override of hex {k}')+ seen.add(k)+ e = at.get(k)+ if e is None: missing.append((field, ed)); continue+ e[field] = float(ed['value']) if field == 'facing' else ed['value']+ return missing+++def map_overrides(path=None):+ """The map editor's authored terrain and location moves (content/map/overrides.yaml, #1099/#1009), so a board+ follows the game map: {(q, r): biome} and {settlement id: (q, r)}. Control is the map's own and boards ignore it."""+ path = path or os.path.join(ROOT, 'content/map/overrides.yaml')+ if not os.path.exists(path): return {}, {}+ with open(path, encoding='utf-8') as f: text = f.read()+ # No terrain or location edits: nothing to read, so the built-in mode still runs without a YAML library.+ if all(re.search(rf'^{k}:\s*\[\]\s*$', text, re.M) for k in ('terrain', 'locations')): return {}, {}+ data = _yaml(path) or {}+ terrain = {(x['hex']['q'], x['hex']['r']): x['value'] for x in data.get('terrain') or []}+ locations = {x['id']: (x['hex']['q'], x['hex']['r']) for x in data.get('locations') or []}+ return terrain, locations+++# --- The board --------------------------------------------------------------------------------------------------------++def parse(argv=None):ap = argparse.ArgumentParser()ap.add_argument('--id', default='central_israel')ap.add_argument('--lat', nargs=2, type=float, default=[31.62, 32.48])ap.add_argument('--lon', nargs=2, type=float, default=[34.40, 35.42])+ ap.add_argument('--all', action='store_true', help='every hex of the game map (instead of --lat/--lon)')ap.add_argument('--sea-ring', type=int, default=1, help='sea hexes kept within this many hexes of land')ap.add_argument('--around', help='crop to hexes around this settlement id instead of a lat/lon box')ap.add_argument('--radius', type=int, default=3, help='with --around: playable hexes within this many steps')ap.add_argument('--env', type=int, default=0, help='with --around: a ring this many hexes wide of environment (landscape only, no tiles or hex lines)')- a = ap.parse_args()+ ap.add_argument('--env-ring', type=int, default=0, help='with a box or --all: land within this many hexes of the box edge is environment')+ ap.add_argument('--regions', help='region recipes (tools/hex_tiles/regions.yaml); without it, the built-in choices')+ ap.add_argument('--out', help='write here instead of unity/Assets/Resources/HexTiles/Boards/<id>.json')+ ap.add_argument('--map-overrides', help='the map editor\'s overrides (default content/map/overrides.yaml)')+ return ap.parse_args(argv)++def build_board(a):+ """The board as a dict, before overrides, and the settlement on each owned hex. Pure: the same arguments and+ inputs give the same board."""H = json.load(open(os.path.join(ROOT, 'content/map/hexes.json')))['hexes']+ # The map editor's terrain overrides set a land hex's biome, as the game map draws it.+ biomes, moved = map_overrides(getattr(a, 'map_overrides', None))+ for h in H:+ if (h['q'], h['r']) in biomes and h['land']: h['biome'] = biomes[(h['q'], h['r'])]by = {(h['q'], h['r']): h for h in H}+ recipes = Recipes.load(a.regions) if a.regions else None+ game = settlements(os.path.join(ROOT, 'content/map/settlements_1948.yaml'))+ if a.all:+ a.lat = [round(min(h['lat'] for h in H) - 0.01, 5), round(max(h['lat'] for h in H) + 0.01, 5)]+ a.lon = [round(min(h['lon'] for h in H) - 0.01, 5), round(max(h['lon'] for h in H) + 0.01, 5)]if a.around:- home = next(s for s in settlements(os.path.join(ROOT, 'content/map/settlements_1948.yaml')) if s['id'] == a.around)+ home = next(s for s in game if s['id'] == a.around)c = min(H, key=lambda h: (h['lon'] - home['lon']) ** 2 + (h['lat'] - home['lat']) ** 2)reach = a.radius + a.envinside = [h for h in H if hex_distance((h['q'], h['r']), (c['q'], c['r'])) <= reach]@@ -113,10 +333,18 @@ def main():env_of = lambda k: hex_distance(k, (c['q'], c['r'])) > a.radiuselse:inside = [h for h in H if a.lat[0] <= h['lat'] <= a.lat[1] and a.lon[0] <= h['lon'] <= a.lon[1]]- env_of = lambda k: False+ if a.env_ring > 0:+ # Environment: the hexes within env-ring steps of the box's edge (of a hex outside the box or off the map).+ extent = {(h['q'], h['r']) for h in inside}+ reach = [(dq, dr) for dq in range(-a.env_ring, a.env_ring + 1) for dr in range(-a.env_ring, a.env_ring + 1) if hex_distance((0, 0), (dq, dr)) <= a.env_ring]+ edge = {k for k in extent if any((k[0] + dq, k[1] + dr) not in extent for dq, dr in reach)}+ env_of = lambda k: k in edge+ else:+ env_of = lambda k: Falseland = {(h['q'], h['r']) for h in inside if h['land']}keep = [h for h in inside if h['land'] or any(hex_distance((h['q'], h['r']), k) <= a.sea_ring for k in land)]cells = {(h['q'], h['r']): h for h in keep}+ in_box = lambda s: a.lat[0] <= s['lat'] <= a.lat[1] and a.lon[0] <= s['lon'] <= a.lon[1]def nearest(lon, lat):return min(cells.values(), key=lambda h: (h['lon'] - lon) ** 2 + (h['lat'] - lat) ** 2)@@ -125,9 +353,15 @@ def main():# nearest free land neighbour (Jaffa beside Tel Aviv).rank = {'city': 0, 'town': 1, 'arab_town': 1, 'moshav': 2, 'kibbutz': 2}owner = {}- for s in sorted(settlements(os.path.join(ROOT, 'content/map/settlements_1948.yaml')), key=lambda s: (rank.get(s.get('type'), 3), s['id'])):- if not (a.lat[0] <= s['lat'] <= a.lat[1] and a.lon[0] <= s['lon'] <= a.lon[1]): continue- h = nearest(s['lon'], s['lat']); k = (h['q'], h['r'])+ for s in sorted(game, key=lambda s: (rank.get(s.get('type'), 3), s['id'])):+ if not in_box(s) and s['id'] not in moved: continue+ if s['id'] in moved: # moved by the map editor: that hex, as the game map has it+ k = moved[s['id']]+ if k not in cells or env_of(k): continue+ h = cells[k]+ if k not in owner: owner[k] = s; continue+ else:+ h = nearest(s['lon'], s['lat']); k = (h['q'], h['r'])if env_of(k): continueif k in owner or not h['land']:free = [(k[0] + dq, k[1] + dr) for dq, dr in NEIGHBOURS]@@ -135,40 +369,80 @@ def main():if not free: continuek = min(free, key=lambda f: (cells[f]['lon'] - s['lon']) ** 2 + (cells[f]['lat'] - s['lat']) ** 2)owner[k] = s-- out = []+ if recipes:+ # Then the 1948 localities, largest first, each on its own hex. A hex already taken keeps its owner: the+ # smaller place is left off, never pushed to a neighbour, so places stay where they were.+ pop = populations(os.path.join(ROOT, 'content/map/settlement_population_1945.yaml'))+ for s in owner.values(): s['population'] = pop.get(s['id'], 0)+ least = recipes.defaults.get('min_population', 0)+ for s in sorted(localities(os.path.join(ROOT, 'content/map/localities_1948.tsv')), key=lambda s: (-s['population'], s['id'])):+ if s['population'] < least or not in_box(s): continue+ h = nearest(s['lon'], s['lat']); k = (h['q'], h['r'])+ if k in owner or not h['land'] or env_of(k): continue+ owner[k] = s++ out, used_regions = [], set()+ lowland = recipes.defaults.get('lowland', LOWLAND) if recipes else LOWLANDfor k, h in sorted(cells.items(), key=lambda kv: (kv[0][1], kv[0][0])):terrain = terrain_of(h)e = {'q': k[0], 'r': k[1], 'terrain': terrain, 'ground': 'seabed' if terrain == 'water' else GROUND.get(h['biome'], 'grass'),'prototype': '', 'note': '', 'unit': '', 'facing': 0.0, 'env': env_of(k)}+ region = None+ if recipes:+ region = recipes.region_of(h)+ e['region'] = region+ if terrain != 'water':+ e['ground'] = recipes.ground(region, h['biome'])+ used_regions.add(region)if e['env']:# Environment: terrain and ground only; the builder dresses it as continuous landscape (no tiles, no hex lines).if terrain == 'mountain': e['terrain'] = 'hills'out.append(e); continueif terrain != 'water':coastal = any((k[0] + dq, k[1] + dr) in by and not by[(k[0] + dq, k[1] + dr)]['land'] for dq, dr in NEIGHBOURS)- if k in owner:+ ground = None+ if k in owner and recipes:+ s = owner[k]+ e['prototype'], ground = apply_rules(recipes.rules(region, 'settlements'), k[0], k[1], id=s['id'], type=s.get('type'),+ tier=recipes.tier_of(s.get('population')), terrain=terrain, biome=h['biome'])+ e['note'] = s['id']+ elif k in owner:s = owner[k]e['prototype'] = SETTLEMENT_TILE.get(s['id'], TYPE_TILE.get(s.get('type'), 'moshava_village'))e['note'] = s['id']if e['prototype'] in ('tel_aviv_city', 'moshava_village', 'kibbutz') and terrain == 'mountain': e['terrain'] = 'hills'+ elif recipes:+ e['prototype'], ground = apply_rules(recipes.rules(region, 'nature'), k[0], k[1], terrain=terrain, biome=h['biome'], coastal=coastal)else:e['prototype'] = nature_tile(h, terrain, coastal)if e['prototype'] == 'coastal_dunes': e['ground'] = 'beach'- if e['prototype'] in ('wheat_fields', 'citrus_orchard', 'grazing_land', 'moshava_village', 'kibbutz', 'tel_aviv_city', 'jaffa_old_city', 'coastal_dunes') and terrain == 'mountain':+ if ground: e['ground'] = ground+ if e['prototype'] in lowland and terrain == 'mountain':e['terrain'] = 'hills'out.append(e)- # Roads: Civ-style, hex centre to hex centre, between the main towns (drawn along hex lines).hex_of = {s['id']: k for k, s in owner.items()}- routes = [('tel_aviv', 'lod'), ('lod', 'ramla'), ('ramla', 'jerusalem'), ('tel_aviv', 'petah_tikva'), ('tel_aviv', 'rishon_lezion'),- ('rishon_lezion', 'rehovot'), ('tel_aviv', 'netanya'), ('netanya', 'hadera'), ('jaffa', 'tel_aviv')]- roads = []- for a_id, b_id in routes:- if a_id in hex_of and b_id in hex_of:- line = [p for p in hex_line(hex_of[a_id], hex_of[b_id]) if p in cells and cells[p]['land']]- line = [p for p in line if not env_of(p)]- if len(line) >= 2: roads.append({'note': f'{a_id} to {b_id}', 'hexes': [v for p in line for v in p]})+ if recipes and 'roads' in recipes.defaults:+ # Roads: the traced 1948 main roads, hex centre to hex centre, cut where they cross the environment.+ rd = recipes.defaults['roads']+ roads = []+ for road in route_roads(cells, rd.get('kinds', ['road']), str(rd.get('before', '1948-05-15'))):+ hs, run = road['hexes'], []+ for i in range(0, len(hs), 2):+ if not env_of((hs[i], hs[i + 1])): run += [hs[i], hs[i + 1]]; continue+ if len(run) >= 4: roads.append({'note': road['note'], 'hexes': run})+ run = []+ if len(run) >= 4: roads.append({'note': road['note'], 'hexes': run})+ else:+ # Roads: Civ-style, hex centre to hex centre, between the main towns (drawn along hex lines).+ routes = [('tel_aviv', 'lod'), ('lod', 'ramla'), ('ramla', 'jerusalem'), ('tel_aviv', 'petah_tikva'), ('tel_aviv', 'rishon_lezion'),+ ('rishon_lezion', 'rehovot'), ('tel_aviv', 'netanya'), ('netanya', 'hadera'), ('jaffa', 'tel_aviv')]+ roads = []+ for a_id, b_id in routes:+ if a_id in hex_of and b_id in hex_of:+ line = [p for p in hex_line(hex_of[a_id], hex_of[b_id]) if p in cells and cells[p]['land']]+ line = [p for p in line if not env_of(p)]+ if len(line) >= 2: roads.append({'note': f'{a_id} to {b_id}', 'hexes': [v for p in line for v in p]})rivers = []ta = hex_of.get('tel_aviv')if ta: # the Yarkon: along the north edges of Tel Aviv's row, out to the sea@@ -184,17 +458,32 @@ def main():e = next((x for x in out if (x['q'], x['r']) == f), None)if e and e['terrain'] != 'water' and not e['unit'] and not e['env'] and e['prototype'] not in ('tel_aviv_city', 'jerusalem_old_city', 'jaffa_old_city'):e['unit'], e['facing'] = unit, facing; return- stand('palmach_squad', 'tel_aviv', 40.0)- stand('sandwich_truck', 'ramla', 100.0)- stand('willys_jeep', 'jerusalem', 270.0)+ units = [(u['unit'], u['near'], float(u['facing'])) for u in recipes.defaults.get('units', [])] if recipes else \+ [('palmach_squad', 'tel_aviv', 40.0), ('sandwich_truck', 'ramla', 100.0), ('willys_jeep', 'jerusalem', 270.0)]+ for u in units: stand(*u)board = {'id': a.id, 'title': f'{a.id} (generated by tools/hex_tiles/make_board.py; lat {a.lat}, lon {a.lon})', 'hexes': out, 'roads': roads, 'rivers': rivers}- dst = os.path.join(ROOT, 'unity/Assets/Resources/HexTiles/Boards', a.id + '.json')- json.dump(board, open(dst, 'w'), indent=1)+ if recipes:+ board['title'] = f'{a.id} (generated by tools/hex_tiles/make_board.py from {os.path.basename(a.regions)}; lat {a.lat}, lon {a.lon})'+ board['regions'] = [flora_entry(recipes.by_id[r]) for r in recipes.order if r in used_regions]+ return board, owner+++def main(argv=None):+ a = parse(argv)+ board, owner = build_board(a)+ dst = a.out or os.path.join(BOARDS, a.id + '.json')+ ov = overrides_path(dst)+ if os.path.exists(ov):+ with open(ov, encoding='utf-8') as f: missing = apply_overrides(board, json.load(f))+ for field, ed in missing: print(f' {field} override of ({ed["hex"]["q"]},{ed["hex"]["r"]}): no such hex on this board, not applied')+ with open(dst, 'w') as f: json.dump(board, f, indent=1)from collections import Counter+ out, roads = board['hexes'], board['roads']print(f'{dst}: {len(out)} hexes ({sum(1 for e in out if e["terrain"] != "water")} land), {len(roads)} roads, settlements {len(owner)}')print(' terrain', dict(Counter(e['terrain'] for e in out)))print(' tiles', dict(Counter(e['prototype'] for e in out if e['prototype'])))+ if 'regions' in board: print(' regions', dict(Counter(e['region'] for e in out if e['terrain'] != 'water')))if __name__ == '__main__':diff --git a/tools/hex_tiles/regions.yaml b/tools/hex_tiles/regions.yamlnew file mode 100644index 000000000..2fafa59c5--- /dev/null+++ b/tools/hex_tiles/regions.yaml@@ -0,0 +1,177 @@+# Region recipes for the hex-tile map (docs/hex-tiles/README.md, "Laying out the whole map"). Read by+# tools/hex_tiles/make_board.py --regions; one command lays out the whole map:+#+# python3 tools/hex_tiles/make_board.py --regions tools/hex_tiles/regions.yaml --id israel --all --env-ring 1+#+# Presentation only: the sim never reads this file or the boards. The regions are landscape zones for choosing tiles and+# trees (Galilee woods, coastal orchards, desert acacia), drawn roughly by eye on the map; they are not borders and say+# nothing about who held a place.+#+# How a hex is dressed:+# region the first region that lists the hex in `hexes` (q, r pairs), else the first whose `polygon` ([lon, lat]+# points) holds the hex centre, in file order, else defaults.region.+# ground the region's `ground` table by the hex's biome (content/map/hexes.json), over defaults.ground.+# tile a settlement hex (the game's 25 settlements, then the 1948 localities of at least min_population, the+# largest first, one per hex) takes the first matching rule of the region's `settlements`, then the+# defaults'. Any other land hex takes the first matching rule of `nature`. A rule matches when every key+# it names matches: id, type (city, town, arab_town, village, kibbutz, moshav), tier (from `tiers`, by the+# place's 1945 population), terrain (flat, hills, mountain), biome, coastal (next to the sea). It sets+# `prototype`, or `pick` ([prototype, weight] pairs drawn by a stable per-hex value), and may set `ground`.+# flora the trees and rocks HexEnvironment plants on the region's environment hexes (the ring with no tiles):+# species per flat and hills ground (model, stand-in shape tree/pine/palm/rock/box, weight; picked by a+# noise field, so woods of one kind clump), a density multiplier, and a rock. A region with no flora gets+# the built-in mix (olive and carob on the flat, Tabor oak and Aleppo pine on hills, limestone outcrops).+#+# Every prototype must be a registered [HexPrototype] id and every ground a HexGround layer+# (tools/tests/test_hex_regions.py checks both).++defaults:+ region: central_hills+ # Localities below this many people (Village Statistics 1945) are left off the board.+ min_population: 1000+ # Population tiers, by the 1945 figure: the largest tier the place reaches.+ tiers: {city: 25000, town: 5000, village: 0}+ ground: {coastal_plain: grass, lowland: grass, valley: plains, hills: hills, mountains: mountain, desert: desert, default: grass}+ # Tiles that want low ground lower a mountain hex to hills.+ lowland: [wheat_fields, citrus_orchard, grazing_land, moshava_village, kibbutz, tel_aviv_city, tel_aviv_city_mixed, jaffa_old_city, coastal_dunes]+ # Roads follow the traced 1948 routes (content/map/route_paths_1948.tsv) of these kinds that the map draws before+ # this date.+ roads: {kinds: [road], before: '1948-05-15'}+ units:+ - {unit: palmach_squad, near: tel_aviv, facing: 40}+ - {unit: sandwich_truck, near: ramla, facing: 100}+ - {unit: willys_jeep, near: jerusalem, facing: 270}+ settlements:+ - {id: tel_aviv, prototype: tel_aviv_city}+ - {id: jaffa, prototype: jaffa_old_city}+ - {id: jerusalem, prototype: jerusalem_old_city}+ - {type: [city, town], tier: city, prototype: tel_aviv_city_mixed}+ - {type: arab_town, tier: city, prototype: jaffa_old_city}+ - {type: [city, town], prototype: moshava_village}+ - {type: [kibbutz, moshav], prototype: kibbutz}+ - {type: [arab_town, village], prototype: arab_village}+ - {prototype: arab_village}+ nature:+ - {biome: desert, prototype: desert_edge}+ - {terrain: mountain, pick: [[judean_highlands, 0.75], [pine_forest, 0.15], [olive_terraces, 0.10]]}+ - {terrain: hills, pick: [[olive_terraces, 0.45], [pine_forest, 0.25], [grazing_land, 0.30]]}+ - {coastal: true, pick: [[coastal_dunes, 0.45], [citrus_orchard, 0.30], [wheat_fields, 0.25]], ground: beach}+ - {biome: valley, pick: [[wheat_fields, 0.60], [grazing_land, 0.25], [citrus_orchard, 0.15]]}+ - {pick: [[wheat_fields, 0.42], [citrus_orchard, 0.33], [grazing_land, 0.25]]}++regions:+ - id: jerusalem+ title: Jerusalem and its hills+ polygon: [[35.07, 31.70], [35.32, 31.70], [35.32, 31.88], [35.07, 31.88]]+ nature:+ - {terrain: mountain, pick: [[judean_highlands, 0.50], [olive_terraces, 0.35], [pine_forest, 0.15]]}+ - {terrain: hills, pick: [[olive_terraces, 0.60], [pine_forest, 0.25], [grazing_land, 0.15]]}+ flora:+ density: 1.0+ flat:+ - {model: 'sandbox:olive_lite', shape: tree, weight: 0.6}+ - {model: 'sandbox:cypress_lite', shape: pine, weight: 0.4}+ hills:+ - {model: 'sandbox:olive_lite', shape: tree, weight: 0.4}+ - {model: 'sandbox:aleppo_pine_lite', shape: pine, weight: 0.35}+ - {model: 'sandbox:cypress_lite', shape: pine, weight: 0.25}+ rock: {model: 'sandbox:limestone*', chance: 0.7}++ - id: jordan_valley+ title: Jordan valley and the Dead Sea+ polygon: [[35.36, 31.05], [35.60, 31.05], [35.62, 31.75], [35.65, 32.30], [35.68, 32.72], [35.50, 32.72], [35.50, 32.30], [35.43, 31.75]]+ ground: {valley: plains, lowland: plains, coastal_plain: plains}+ nature:+ - {terrain: mountain, pick: [[desert_edge, 0.70], [grazing_land, 0.30]]}+ - {terrain: hills, pick: [[grazing_land, 0.50], [desert_edge, 0.50]]}+ - {biome: desert, prototype: desert_edge}+ - {pick: [[wheat_fields, 0.40], [grazing_land, 0.30], [citrus_orchard, 0.15], [desert_edge, 0.15]]}+ flora:+ density: 0.6+ flat:+ - {model: 'sandbox:date_palm', shape: palm, weight: 0.55}+ - {model: 'sandbox:acacia_lite', shape: tree, weight: 0.45}+ hills:+ - {model: 'sandbox:acacia_lite', shape: tree, weight: 1.0}+ rock: {model: 'sandbox:desert_rock*', chance: 0.4, on_flat: true}++ - id: arava+ title: Arava+ polygon: [[34.88, 29.40], [35.10, 29.40], [35.52, 31.05], [35.25, 31.05]]+ ground: {valley: desert, lowland: desert, coastal_plain: desert, hills: desert, mountains: desert}+ nature:+ - {terrain: mountain, pick: [[desert_edge, 0.60], [mountain_peaks, 0.40]]}+ - {prototype: desert_edge}+ flora:+ density: 0.25+ flat:+ - {model: 'sandbox:acacia_lite', shape: tree, weight: 0.75}+ - {model: 'sandbox:date_palm', shape: palm, weight: 0.25}+ hills:+ - {model: 'sandbox:acacia_lite', shape: tree, weight: 1.0}+ rock: {model: 'sandbox:desert_rock*', chance: 0.8, on_flat: true}++ - id: coastal_plain+ title: Coastal plain+ polygon: [[34.20, 31.20], [34.50, 31.20], [34.72, 31.60], [34.92, 32.00], [35.00, 32.40], [35.03, 32.70], [35.12, 32.85], [35.15, 33.10], [35.05, 33.40], [34.20, 33.40]]+ nature:+ - {coastal: true, terrain: flat, pick: [[coastal_dunes, 0.45], [citrus_orchard, 0.35], [wheat_fields, 0.20]], ground: beach}+ - {terrain: flat, pick: [[citrus_orchard, 0.45], [wheat_fields, 0.35], [grazing_land, 0.20]]}+ - {terrain: hills, pick: [[olive_terraces, 0.50], [grazing_land, 0.30], [pine_forest, 0.20]]}+ flora:+ density: 0.9+ flat:+ - {model: 'sandbox:citrus_lite', shape: tree, weight: 0.55}+ - {model: 'sandbox:date_palm', shape: palm, weight: 0.45}+ hills:+ - {model: 'sandbox:olive_lite', shape: tree, weight: 0.5}+ - {model: 'sandbox:carob_lite', shape: tree, weight: 0.5}+ rock: {model: 'sandbox:limestone*', chance: 0.3}++ - id: negev+ title: Negev and the southern deserts+ # Everything south of the hills not already Arava or Jordan valley (listed first), the desert either side of them.+ polygon: [[34.20, 29.40], [35.95, 29.40], [35.95, 31.35], [34.20, 31.35]]+ ground: {valley: desert, lowland: desert, coastal_plain: desert, hills: desert, mountains: desert}+ nature:+ - {terrain: mountain, pick: [[desert_edge, 0.70], [mountain_peaks, 0.30]]}+ - {biome: desert, terrain: flat, pick: [[desert_edge, 0.75], [grazing_land, 0.20], [wheat_fields, 0.05]]}+ - {prototype: desert_edge}+ flora:+ density: 0.35+ flat:+ - {model: 'sandbox:acacia_lite', shape: tree, weight: 1.0}+ hills:+ - {model: 'sandbox:acacia_lite', shape: tree, weight: 1.0}+ rock: {model: 'sandbox:desert_rock*', chance: 0.7, on_flat: true}++ - id: north+ title: Galilee and the north+ polygon: [[34.90, 32.40], [35.90, 32.40], [35.90, 33.40], [34.90, 33.40]]+ nature:+ - {terrain: mountain, pick: [[pine_forest, 0.50], [judean_highlands, 0.35], [olive_terraces, 0.15]]}+ - {terrain: hills, pick: [[pine_forest, 0.45], [olive_terraces, 0.35], [grazing_land, 0.20]]}+ - {terrain: flat, pick: [[wheat_fields, 0.50], [grazing_land, 0.30], [citrus_orchard, 0.20]]}+ flora:+ density: 1.25+ flat:+ - {model: 'sandbox:tabor_oak_lite', shape: tree, weight: 0.6}+ - {model: 'sandbox:carob_lite', shape: tree, weight: 0.4}+ hills:+ - {model: 'sandbox:aleppo_pine_lite', shape: pine, weight: 0.55}+ - {model: 'sandbox:tabor_oak_lite', shape: tree, weight: 0.45}+ rock: {model: 'sandbox:limestone*', chance: 0.6}++ - id: central_hills+ title: Central hills and the Shephelah+ polygon: [[34.85, 31.35], [35.45, 31.35], [35.55, 32.45], [34.95, 32.45]]+ # The built-in mix, written out: olive and carob on the flat, Tabor oak and Aleppo pine on hills.+ flora:+ density: 1.0+ flat:+ - {model: 'sandbox:olive_lite', shape: tree, weight: 0.6}+ - {model: 'sandbox:carob_lite', shape: tree, weight: 0.4}+ hills:+ - {model: 'sandbox:tabor_oak_lite', shape: tree, weight: 0.55}+ - {model: 'sandbox:aleppo_pine_lite', shape: pine, weight: 0.45}+ rock: {model: 'sandbox:limestone*', chance: 0.6}diff --git a/tools/tests/test_hex_regions.py b/tools/tests/test_hex_regions.pynew file mode 100644index 000000000..ae98f83d8--- /dev/null+++ b/tools/tests/test_hex_regions.py@@ -0,0 +1,231 @@+"""The hex-tile board generator's region recipes and overrides (tools/hex_tiles/make_board.py, regions.yaml)."""+import json+import re+from pathlib import Path++import pytest++from hex_tiles import make_board as mb++ROOT = Path(__file__).resolve().parents[2]+REGIONS = ROOT / "tools/hex_tiles/regions.yaml"+HEX_TILES = ROOT / "unity/Assets/Scripts/Map/HexTiles"+COUNTRY = ["--regions", str(REGIONS), "--id", "israel", "--all", "--env-ring", "1"]+++def known_prototypes():+ ids = set()+ for f in (HEX_TILES / "Prototypes").glob("*.cs"):+ ids |= set(re.findall(r'\[HexPrototype\("([a-z0-9_]+)"\)\]', f.read_text(encoding="utf-8")))+ return ids+++def known_grounds():+ text = (HEX_TILES / "Core/HexBoard.cs").read_text(encoding="utf-8")+ layers = text[text.index("Layers ="):text.index("public static IReadOnlyList<string> Ids")]+ return set(re.findall(r'\("([a-z_]+)", "', layers))+++def known_units():+ ids = set()+ for f in (HEX_TILES / "Units").glob("*.cs"):+ ids |= set(re.findall(r'\[HexUnitType\("([a-z0-9_]+)"\)\]', f.read_text(encoding="utf-8")))+ return ids++[email protected](scope="module")+def country():+ board, _ = mb.build_board(mb.parse(COUNTRY))+ return board+++def test_the_whole_country_is_deterministic(country):+ again, _ = mb.build_board(mb.parse(COUNTRY))+ assert json.dumps(again) == json.dumps(country)+++def test_every_region_dresses_some_land(country):+ regions = [r["id"] for r in mb.Recipes.load(str(REGIONS)).regions]+ used = {h["region"] for h in country["hexes"] if h["terrain"] != "water"}+ assert set(regions) <= used+ assert [r["id"] for r in country["regions"]] == [r for r in regions if r in used]+++def test_the_board_names_only_known_prototypes_grounds_units_and_regions(country):+ protos, grounds = known_prototypes(), known_grounds()+ assert "tel_aviv_city" in protos and "desert" in grounds+ regions = {r["id"] for r in country["regions"]}+ for h in country["hexes"]:+ assert h["terrain"] in ("flat", "hills", "mountain", "water")+ assert h["ground"] in grounds, h+ assert h["prototype"] == "" or h["prototype"] in protos, h+ assert h["unit"] == "" or h["unit"] in known_units(), h+ assert h["terrain"] == "water" or h["region"] in regions, h+++def test_the_recipes_name_only_known_prototypes_grounds_and_shapes():+ protos, grounds = known_prototypes(), known_grounds()+ recipes = mb.Recipes.load(str(REGIONS))+ for region in recipes.regions + [recipes.defaults]:+ for rule in region.get("settlements", []) + region.get("nature", []):+ names = [rule["prototype"]] if "prototype" in rule else [p for p, _ in rule["pick"]]+ assert set(names) <= protos, rule+ assert rule.get("ground", "grass") in grounds, rule+ assert set(region.get("ground", {}).values()) <= grounds, region.get("id")+ flora = region.get("flora", {})+ for s in flora.get("flat", []) + flora.get("hills", []):+ assert s["shape"] in ("tree", "pine", "palm", "rock", "box"), s+ assert s["model"].startswith(("sandbox:", "tiles:", "proto:")), s+ assert {u["unit"] for u in recipes.defaults["units"]} <= known_units()+++def test_environment_is_only_the_ring_and_carries_no_tiles(country):+ env = [h for h in country["hexes"] if h["env"]]+ assert env, "an --env-ring board has environment hexes"+ assert all(h["prototype"] == "" and h["unit"] == "" and h["terrain"] != "mountain" for h in env)+ assert sum(not h["env"] for h in country["hexes"]) > 5 * len(env)+++def test_settlements_take_their_tier_and_type_tiles(country):+ by_note = {h["note"]: h["prototype"] for h in country["hexes"] if h["note"]}+ assert by_note["tel_aviv"] == "tel_aviv_city"+ assert by_note["jerusalem"] == "jerusalem_old_city"+ assert by_note["jaffa"] == "jaffa_old_city"+ assert by_note["haifa"] == "tel_aviv_city_mixed" # a city-tier Jewish or mixed city (1945: 138,300)+ assert by_note["rosh_pinna"] == "moshava_village"+ # One place per hex: no hex note repeats.+ notes = [h["note"] for h in country["hexes"] if h["note"]]+ assert len(notes) == len(set(notes))+++def test_region_lookup_lists_beat_polygons_and_file_order_breaks_ties():+ recipes = mb.Recipes({+ "defaults": {"region": "rest"},+ "regions": [+ {"id": "small", "polygon": [[0, 0], [1, 0], [1, 1], [0, 1]]},+ {"id": "big", "polygon": [[-5, -5], [5, -5], [5, 5], [-5, 5]], "hexes": [7, 7]},+ {"id": "rest"},+ ],+ })+ assert recipes.region_of({"q": 0, "r": 0, "lon": 0.5, "lat": 0.5}) == "small"+ assert recipes.region_of({"q": 0, "r": 0, "lon": 3, "lat": 3}) == "big"+ assert recipes.region_of({"q": 7, "r": 7, "lon": 0.5, "lat": 0.5}) == "big"+ assert recipes.region_of({"q": 0, "r": 0, "lon": 9, "lat": 9}) == "rest"+++def test_rules_match_every_key_they_name():+ rules = [{"type": "kibbutz", "prototype": "kibbutz"}, {"terrain": ["hills", "mountain"], "tier": "city", "prototype": "a"},+ {"pick": [["b", 1.0], ["c", 0.0]], "ground": "beach"}]+ assert mb.apply_rules(rules, 0, 0, type="kibbutz", terrain="flat") == ("kibbutz", None)+ assert mb.apply_rules(rules, 0, 0, type="town", terrain="hills", tier="city") == ("a", None)+ assert mb.apply_rules(rules, 0, 0, type="town", terrain="hills", tier="town") == ("b", "beach")+++def edit(q, r, value):+ return {"hex": {"q": q, "r": r}, "value": value}+++def test_overrides_are_applied_last_and_survive_regeneration(tmp_path, capsys):+ out = tmp_path / "israel.json"+ mb.main(COUNTRY + ["--out", str(out)])+ first = json.loads(out.read_text())+ tel_aviv = next(h for h in first["hexes"] if h["note"] == "tel_aviv")+ squad = next(h for h in first["hexes"] if h["unit"] == "palmach_squad")+ ring = next(h for h in first["hexes"] if h["env"] and h["terrain"] != "water")+ ta, sq = (tel_aviv["q"], tel_aviv["r"]), (squad["q"], squad["r"])+ # The shape of content/map/overrides.yaml (#1099): one list per field of {hex: {q, r}, value}.+ (tmp_path / "israel.overrides.json").write_text(json.dumps({+ "board": "israel",+ "prototype": [edit(*ta, "kibbutz"), edit(999, 999, "kibbutz")],+ "ground": [edit(*ta, "plains")],+ "unit": [edit(*sq, "")],+ "facing": [edit(*sq, "0")],+ "region": [edit(ring["q"], ring["r"], "north")],+ }))+ mb.main(COUNTRY + ["--out", str(out)])+ assert "(999,999)" in capsys.readouterr().out+ after = {(h["q"], h["r"]): h for h in json.loads(out.read_text())["hexes"]}+ assert (after[ta]["prototype"], after[ta]["ground"]) == ("kibbutz", "plains")+ assert (after[sq]["unit"], after[sq]["facing"]) == ("", 0.0)+ assert after[(ring["q"], ring["r"])]["region"] == "north"+ # Only the edited fields move.+ assert after[ta]["terrain"] == tel_aviv["terrain"] and after[sq]["prototype"] == squad["prototype"]+ edited = {ta, sq, (ring["q"], ring["r"])}+ assert all(after[(h["q"], h["r"])] == h for h in first["hexes"] if (h["q"], h["r"]) not in edited)+++def test_an_override_of_an_unknown_field_or_a_hex_twice_fails():+ board = {"hexes": [{"q": 0, "r": 0, "terrain": "flat"}]}+ with pytest.raises(ValueError):+ mb.apply_overrides(board, {"terrain": [edit(0, 0, "water")]})+ with pytest.raises(ValueError):+ mb.apply_overrides(board, {"ground": [edit(0, 0, "desert"), edit(0, 0, "grass")]})+++def test_boards_follow_the_map_editors_terrain_and_location_moves(tmp_path):+ base, _ = mb.build_board(mb.parse(COUNTRY))+ hexes = {(h["q"], h["r"]): h for h in base["hexes"]}+ tel_aviv = next(k for k, h in hexes.items() if h["note"] == "tel_aviv")+ # A flat central-hills hex with no settlement, made desert by the map editor; Rosh Pinna moved to a free land hex.+ flat = next(k for k, h in hexes.items() if h["region"] == "central_hills" and h["terrain"] == "flat" and not h["note"] and not h["env"])+ free = next(k for k, h in hexes.items() if h["region"] == "north" and h["terrain"] != "water" and not h["note"] and not h["env"])+ ov = tmp_path / "overrides.yaml"+ ov.write_text(f"terrain:\n- hex: {{q: {flat[0]}, r: {flat[1]}}}\n value: desert\n"+ f"control: []\nlocations:\n- id: rosh_pinna\n hex: {{q: {free[0]}, r: {free[1]}}}\n")+ moved, _ = mb.build_board(mb.parse(COUNTRY + ["--map-overrides", str(ov)]))+ after = {(h["q"], h["r"]): h for h in moved["hexes"]}+ assert (after[flat]["ground"], after[flat]["prototype"]) == ("desert", "desert_edge")+ assert after[free]["note"] == "rosh_pinna"+ assert after[tel_aviv]["note"] == "tel_aviv"+++def test_the_repos_map_overrides_file_reads():+ terrain, locations = mb.map_overrides()+ assert isinstance(terrain, dict) and isinstance(locations, dict)+++def test_a_settlement_moved_into_the_crop_is_kept(tmp_path):+ base, _ = mb.build_board(mb.parse([]))+ assert all(h["note"] != "rosh_pinna" for h in base["hexes"])+ target = next(h for h in base["hexes"] if h["terrain"] != "water" and not h["note"] and not h["env"])+ ov = tmp_path / "overrides.yaml"+ ov.write_text(f"terrain: []\ncontrol: []\nlocations:\n- id: rosh_pinna\n"+ f" hex: {{q: {target['q']}, r: {target['r']}}}\n")+ moved, _ = mb.build_board(mb.parse(["--map-overrides", str(ov)]))+ after = {(h["q"], h["r"]): h for h in moved["hexes"]}+ assert after[(target["q"], target["r"])]["note"] == "rosh_pinna"+ tel_aviv = next(h for h in base["hexes"] if h["note"] == "tel_aviv")+ assert after[(tel_aviv["q"], tel_aviv["r"])]["note"] == "tel_aviv"+++def test_a_settlement_moved_out_of_the_crop_is_omitted(tmp_path):+ base, _ = mb.build_board(mb.parse([]))+ assert any(h["note"] == "tel_aviv" for h in base["hexes"])+ inside = {(h["q"], h["r"]) for h in base["hexes"]}+ hexes = json.loads((ROOT / "content/map/hexes.json").read_text())["hexes"]+ target = next(h for h in hexes if h["land"] and (h["q"], h["r"]) not in inside)+ ov = tmp_path / "overrides.yaml"+ ov.write_text(f"terrain: []\ncontrol: []\nlocations:\n- id: tel_aviv\n"+ f" hex: {{q: {target['q']}, r: {target['r']}}}\n")+ moved, _ = mb.build_board(mb.parse(["--map-overrides", str(ov)]))+ assert all(h["note"] != "tel_aviv" for h in moved["hexes"])+++def test_a_settlement_moved_out_of_an_empty_crop_is_omitted(tmp_path):+ args = ["--lat", "0", "1", "--lon", "0", "1"]+ base, _ = mb.build_board(mb.parse(args))+ assert base["hexes"] == []+ hexes = json.loads((ROOT / "content/map/hexes.json").read_text())["hexes"]+ target = next(h for h in hexes if h["land"])+ ov = tmp_path / "overrides.yaml"+ ov.write_text(f"terrain: []\ncontrol: []\nlocations:\n- id: rosh_pinna\n"+ f" hex: {{q: {target['q']}, r: {target['r']}}}\n")+ moved, owner = mb.build_board(mb.parse(args + ["--map-overrides", str(ov)]))+ assert moved["hexes"] == [] and owner == {}+++def test_the_built_in_mode_writes_no_regions(tmp_path):+ out = tmp_path / "central.json"+ mb.main(["--id", "central_israel", "--out", str(out)])+ board = json.loads(out.read_text())+ assert "regions" not in board and all("region" not in h for h in board["hexes"])diff --git a/unity/Assets/Editor/HexTiles/Capture/HexBoardCapture.cs b/unity/Assets/Editor/HexTiles/Capture/HexBoardCapture.csindex 3b555f97b..885c86ab5 100644--- a/unity/Assets/Editor/HexTiles/Capture/HexBoardCapture.cs+++ b/unity/Assets/Editor/HexTiles/Capture/HexBoardCapture.cs@@ -22,7 +22,9 @@ namespace Statecraft.HexTiles.Capture/// -prototype <id> builds and shoots only that tile (with the board's ground and mountains around it)./// Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity/// -executeMethod Statecraft.HexTiles.Capture.HexBoardCapture.Run [-board tel_aviv] [-prototype <id> [-on <tile>]]- /// [-captureDir asset-staging/ui-local/hex-tiles] [-captureSize 3840x2160]</summary>+ /// [-captureDir asset-staging/ui-local/hex-tiles] [-captureSize 3840x2160] [-boardOnly]+ /// A board too large for the standard board shot (the whole country) is framed whole instead. Each prototype and unit+ /// is shot once (its last hex in the board file, the one whose shots used to be kept); -boardOnly skips those shots.</summary>public static class HexBoardCapture{public const string BoardsFolder = "Assets/Resources/HexTiles/Boards";@@ -71,17 +73,20 @@ namespace Statecraft.HexTiles.CaptureVector3 OnGround(Vector3 p) => new Vector3(p.x, Mathf.Max(surface.Height(p), 0f), p.z);var centres = board.Hexes.Values.Select(h => HexGeometry.Centre(h.q, h.r, HexScale.HexM)).ToList();var middle = new Vector3(centres.Average(c => c.x), 0f, centres.Average(c => c.z));- if (only == null) Shoot(cam, OnGround(middle), BoardDistanceM, Path.Combine(dir, "board.png"), width, height);+ float boardDistance = BoardDistance(board, cam, width / (float)height);+ if (only == null) Shoot(cam, OnGround(middle), boardDistance, Path.Combine(dir, "board.png"), width, height);// A board with an environment ring: one wider shot that takes in the landscape round the play hexes.- if (only == null && board.Hexes.Values.Any(h => h.env)) Shoot(cam, OnGround(middle), BoardDistanceM * 1.6f, Path.Combine(dir, "board-wide.png"), width, height);- foreach (var t in board.Hexes.Values.Where(h => h.prototype != "" && (only == null || h.prototype == only)))+ if (only == null && board.Hexes.Values.Any(h => h.env)) Shoot(cam, OnGround(middle), boardDistance * 1.6f, Path.Combine(dir, "board-wide.png"), width, height);+ bool tiles = !Environment.GetCommandLineArgs().Contains("-boardOnly");+ // One mid and one close shot per prototype, of its last hex (the shots are named by prototype).+ foreach (var t in board.Hexes.Values.Where(h => tiles && h.prototype != "" && (only == null || h.prototype == only)).GroupBy(h => h.prototype).Select(g => g.Last())){var c = OnGround(HexGeometry.Centre(t.q, t.r, HexScale.HexM));Shoot(cam, c, MidDistanceM, Path.Combine(dir, $"{t.prototype}-mid.png"), width, height);Shoot(cam, c, CloseDistanceM, Path.Combine(dir, $"{t.prototype}-close.png"), width, height);}// Units: one close shot each, at the unit's own zoom.- foreach (var u in board.Hexes.Values.Where(h => h.unit != "" && (only == null || h.prototype == only)))+ foreach (var u in board.Hexes.Values.Where(h => tiles && h.unit != "" && (only == null || h.prototype == only)).GroupBy(h => h.unit).Select(g => g.Last()))Shoot(cam, OnGround(HexGeometry.Centre(u.q, u.r, HexScale.HexM)), CloseDistanceM, Path.Combine(dir, $"unit-{u.unit}-close.png"), width, height);var lines = new List<string> { $"board {boardId}: {board.Hexes.Count} hexes, built in {buildMs} ms, {width}x{height}" };lines.AddRange(reports.Select(r => " " + r));@@ -112,6 +117,16 @@ namespace Statecraft.HexTiles.Capturereturn cam;}+ /// <summary>The board shot's distance: the standard one, unless the board would not fit at twice it (the whole+ /// country), when it is framed whole: its width across the view, its depth foreshortened by the pitch.</summary>+ static float BoardDistance(HexBoard board, Camera cam, float aspect)+ {+ var b = HexBoardBuilder.Bounds(board);+ float tanV = Mathf.Tan(cam.fieldOfView * 0.5f * Mathf.Deg2Rad), tanH = tanV * aspect;+ float fit = 1.05f * Mathf.Max(b.width * 0.5f / tanH, b.height * 0.5f * Mathf.Sin(Pitch * Mathf.Deg2Rad) / tanV);+ return fit > 2f * BoardDistanceM ? fit : BoardDistanceM;+ }+public static void Shoot(Camera cam, Vector3 lookAt, float distance, string path, int width, int height){cam.transform.rotation = Quaternion.Euler(Pitch, 0f, 0f);diff --git a/unity/Assets/Editor/HexTiles/Painter.meta b/unity/Assets/Editor/HexTiles/Painter.metanew file mode 100644index 000000000..db521cee7--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Painter.meta@@ -0,0 +1,8 @@+fileFormatVersion: 2+guid: aa503bf164e8c4dfb8c977b6604b7dcf+folderAsset: yes+DefaultImporter:+ externalObjects: {}+ userData:+ assetBundleName:+ assetBundleVariant:diff --git a/unity/Assets/Editor/HexTiles/Painter/HexPainter.cs b/unity/Assets/Editor/HexTiles/Painter/HexPainter.csnew file mode 100644index 000000000..c9a44e056--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Painter/HexPainter.cs@@ -0,0 +1,109 @@+#nullable enable+using System;+using System.Collections.Generic;+using System.Globalization;+using System.IO;+using System.Linq;+using UnityEditor;+using UnityEngine;++namespace Statecraft.HexTiles.Painter+{+ /// <summary>The Hex Painter's write-back, apart from its window so tests can drive it: one edit sets a field of one+ /// hex on the board in memory and records it in the board's sibling <id>.overrides.json (HexBoardOverrides), which+ /// tools/hex_tiles/make_board.py applies last on every regeneration and HexBoard.Load applies at load.</summary>+ public static class HexPainter+ {+ public const string BoardsFolder = "Assets/Resources/HexTiles/Boards";++ public static string OverridesPath(string boardsDir, string id) => Path.Combine(boardsDir, id + HexBoardOverrides.Suffix + ".json");++ /// <summary>The board ids in a boards folder (its .json files that are not overrides).</summary>+ public static string[] BoardIds(string boardsDir) => Directory.GetFiles(boardsDir, "*.json")+ .Select(f => Path.GetFileNameWithoutExtension(f)).Where(n => !n.EndsWith(HexBoardOverrides.Suffix, StringComparison.Ordinal))+ .OrderBy(n => n, StringComparer.Ordinal).ToArray();++ /// <summary>Checks a value before it reaches a board or an overrides file: a registered prototype or unit (or none),+ /// a HexGround layer, a finite facing. The painter edits hex-tile presentation only: terrain, control and+ /// locations are the map editor's (content/map/overrides.yaml, #1009) and are not fields here.</summary>+ public static void Validate(string field, string value)+ {+ bool ok = field switch+ {+ "prototype" => value == "" || HexPrototypes.All.ContainsKey(value),+ "unit" => value == "" || HexUnitTypes.All.ContainsKey(value),+ "ground" => HexGround.Ids.Contains(value),+ "facing" => float.TryParse(value, NumberStyles.Float, CultureInfo.InvariantCulture, out var f) && !float.IsNaN(f) && !float.IsInfinity(f),+ "region" => true, // checked against the board's regions in Write+ _ => throw new ArgumentException($"override field '{field}' is not one of {string.Join(", ", HexBoardOverrides.Fields)}"),+ };+ if (!ok) throw new ArgumentException($"'{value}' is not a valid {field}");+ }++ /// <summary>Sets <paramref name="field"/> of hex (q, r) on <paramref name="board"/> and records the edit in the+ /// overrides file at <paramref name="overridesPath"/> (created if missing; an earlier edit of the same field is+ /// replaced). Returns the overrides as written.</summary>+ public static HexBoardOverrides Write(HexBoard board, string overridesPath, int q, int r, string field, string value)+ {+ Validate(field, value);+ if (!board.Hexes.TryGetValue((q, r), out var h)) throw new ArgumentException($"board {board.File.id} has no hex ({q},{r})");+ if (field == "region" && value != "" && !board.Regions.ContainsKey(value)) throw new ArgumentException($"board {board.File.id} has no region '{value}'");+ var overrides = File.Exists(overridesPath) ? HexBoardOverrides.FromJson(File.ReadAllText(overridesPath)) : new HexBoardOverrides();+ overrides.board = board.File.id;+ overrides.Record(q, r, field, value);+ HexBoardOverrides.Set(h, field, value);+ File.WriteAllText(overridesPath, overrides.ToJson());+ return overrides;+ }++ /// <summary>Writes one edit for the board under <paramref name="root"/> (built with Options.PerHex) and rebuilds+ /// just that hex. Returns the hex's new tile report (null when it has no tile).</summary>+ public static HexTileReport? Change(GameObject root, string overridesPath, int q, int r, string field, string value)+ {+ var state = root.GetComponent<HexBoardState>() ?? throw new InvalidOperationException("load the board with the Hex Painter first");+ Write(state.Board, overridesPath, q, r, field, value);+ return HexBoardBuilder.RebuildHex(root, q, r);+ }++ /// <summary>The board hex under a ray (a Scene-view click): where it meets the board's terrain, else sea level.+ /// Null off the board.</summary>+ public static (int q, int r)? Pick(GameObject root, Ray ray)+ {+ var state = root.GetComponent<HexBoardState>();+ if (state == null) return null;+ var board = root.transform;+ Vector3 point;+ var hit = Physics.RaycastAll(ray, 1e7f).Where(h => h.collider.transform.IsChildOf(board)).OrderBy(h => h.distance).ToList();+ if (hit.Count > 0) point = hit[0].point;+ else if (new Plane(Vector3.up, board.position).Raycast(ray, out var d)) point = ray.GetPoint(d);+ else return null;+ var k = HexGeometry.Axial(board.InverseTransformPoint(point), HexScale.HexM);+ return state.Board.Hexes.ContainsKey(k) ? k : null;+ }++ /// <summary>A snapshot of loaded scene boards, including unsaved painter previews. Never includes added+ /// persistent assets or prefab-stage contents; materialized before the window destroys any board.</summary>+ public static HexBoardState[] LoadedBoards() => UnityEngine.Object.FindObjectsByType<HexBoardState>(FindObjectsSortMode.None)+ .Concat(Resources.FindObjectsOfTypeAll<HexBoardState>().Where(s =>+ (s.gameObject.hideFlags & HideFlags.DontSaveInEditor) != 0 && !EditorUtility.IsPersistent(s.gameObject)+ && UnityEditor.SceneManagement.PrefabStageUtility.GetPrefabStage(s.gameObject) == null))+ .Distinct().ToArray();++ /// <summary>Builds board <paramref name="id"/> (with its overrides) in the open scene, one object per hex.</summary>+ public static GameObject Load(string id)+ {+ var root = HexBoardBuilder.Build(HexBoard.Load(id), Capture.HexBoardCapture.Ground, options: new HexBoardBuilder.Options { PerHex = true }).root;+ root.hideFlags |= HideFlags.DontSaveInEditor;+ Physics.SyncTransforms(); // so Pick's rays meet the new terrain's collider+ return root;+ }++ /// <summary>Re-imports an overrides file written under Assets, so Resources (and HexBoard.Load) see it.</summary>+ public static void Import(string overridesPath)+ {+ var full = Path.GetFullPath(overridesPath).Replace('\\', '/');+ var assets = Path.GetFullPath(Application.dataPath).Replace('\\', '/');+ if (full.StartsWith(assets + "/", StringComparison.Ordinal)) AssetDatabase.ImportAsset("Assets" + full.Substring(assets.Length));+ }+ }+}diff --git a/unity/Assets/Editor/HexTiles/Painter/HexPainter.cs.meta b/unity/Assets/Editor/HexTiles/Painter/HexPainter.cs.metanew file mode 100644index 000000000..9035dc624--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Painter/HexPainter.cs.meta@@ -0,0 +1,2 @@+fileFormatVersion: 2+guid: 24d00eb80b2874d73983883a9316f8ee\ No newline at end of filediff --git a/unity/Assets/Editor/HexTiles/Painter/HexPainterCapture.cs b/unity/Assets/Editor/HexTiles/Painter/HexPainterCapture.csnew file mode 100644index 000000000..e272694b2--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Painter/HexPainterCapture.cs@@ -0,0 +1,81 @@+#nullable enable+using System;+using System.Diagnostics;+using System.IO;+using Statecraft.Game.Map;+using Statecraft.HexTiles.Capture;+using UnityEditor;+using UnityEditor.SceneManagement;+using UnityEngine;+using Debug = UnityEngine.Debug;+using Object = UnityEngine.Object;++namespace Statecraft.HexTiles.Painter+{+ /// <summary>The Hex Painter's path without its window, for checking it from the command line: loads a board as the+ /// painter does, shoots one hex, makes one edit through HexPainter.Change (written to -overrides, by default a file+ /// in the capture folder, so the board's own overrides are untouched), and shoots the hex again.+ /// Unity -batchmode -CI false -GITHUB_ACTIONS false -TF_BUILD false -quit -projectPath unity+ /// -executeMethod Statecraft.HexTiles.Painter.HexPainterCapture.Run -board israel -hex -3,19 -field prototype+ /// -value kibbutz [-overrides <path>] [-captureDir asset-staging/ui-local/hex-tiles/painter] [-captureSize 3840x2160]+ /// Writes <dir>/before.png, after.png and painter.txt (the overrides written, the rebuild time, the tile report).</summary>+ public static class HexPainterCapture+ {+ public static void Run()+ {+ try+ {+ var repo = Path.GetFullPath(Path.Combine(Application.dataPath, "..", ".."));+ var dir = Path.GetFullPath(Path.Combine(repo, HexBoardCapture.Arg("-captureDir") ?? "asset-staging/ui-local/hex-tiles/painter"));+ var size = (HexBoardCapture.Arg("-captureSize") ?? "3840x2160").Split('x');+ var hex = (HexBoardCapture.Arg("-hex") ?? throw new ArgumentException("-hex q,r")).Split(',');+ Directory.CreateDirectory(dir);+ var overrides = HexBoardCapture.Arg("-overrides") ?? Path.Combine(dir, "painter.overrides.json");+ if (HexBoardCapture.Arg("-overrides") == null && File.Exists(overrides)) File.Delete(overrides);+ Shoot(HexBoardCapture.Arg("-board") ?? "israel", int.Parse(hex[0]), int.Parse(hex[1]), HexBoardCapture.Arg("-field") ?? "prototype",+ HexBoardCapture.Arg("-value") ?? "", overrides, dir, int.Parse(size[0]), int.Parse(size[1]));+ }+ catch (Exception e)+ {+ Debug.LogError("HEX PAINTER CAPTURE FAILED " + e);+ if (Application.isBatchMode) EditorApplication.Exit(1);+ else throw;+ }+ }++ static void Shoot(string boardId, int q, int r, string field, string value, string overrides, string dir, int width, int height)+ {+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ var cam = HexBoardCapture.Stage();+ var clock = Stopwatch.StartNew();+ var root = HexPainter.Load(boardId);+ long loadMs = clock.ElapsedMilliseconds;+ try+ {+ var state = root.GetComponent<HexBoardState>();+ var c = HexGeometry.Centre(q, r, HexScale.HexM);+ c.y = Mathf.Max(state.Surface.Height(c), 0f);+ var h = state.Board.Hexes[(q, r)];+ string before = HexBoardOverrides.Get(h, field);+ HexBoardCapture.Shoot(cam, c, 26000f, Path.Combine(dir, "before.png"), width, height);+ clock.Restart();+ var report = HexPainter.Change(root, overrides, q, r, field, value);+ long rebuildMs = clock.ElapsedMilliseconds;+ HexBoardCapture.Shoot(cam, c, 26000f, Path.Combine(dir, "after.png"), width, height);+ var lines = new[]+ {+ $"board {boardId}: loaded in {loadMs} ms; ({q},{r}) {field} '{before}' -> '{value}', rebuilt in {rebuildMs} ms",+ "tile: " + (report?.ToString() ?? "none"),+ "overrides written to " + overrides + ":", File.ReadAllText(overrides),+ };+ File.WriteAllLines(Path.Combine(dir, "painter.txt"), lines);+ Debug.Log("HEX PAINTER " + string.Join(" | ", lines) + " -> " + dir);+ }+ finally+ {+ TiltShift.Reset();+ Object.DestroyImmediate(root);+ }+ }+ }+}diff --git a/unity/Assets/Editor/HexTiles/Painter/HexPainterCapture.cs.meta b/unity/Assets/Editor/HexTiles/Painter/HexPainterCapture.cs.metanew file mode 100644index 000000000..8961adeec--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Painter/HexPainterCapture.cs.meta@@ -0,0 +1,2 @@+fileFormatVersion: 2+guid: 95f718b6b5e264ad4af1ffe5339ae6b7\ No newline at end of filediff --git a/unity/Assets/Editor/HexTiles/Painter/HexPainterWindow.cs b/unity/Assets/Editor/HexTiles/Painter/HexPainterWindow.csnew file mode 100644index 000000000..a2b2177bd--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Painter/HexPainterWindow.cs@@ -0,0 +1,156 @@+#nullable enable+using System;+using System.Globalization;+using System.IO;+using System.Linq;+using UnityEditor;+using UnityEngine;++namespace Statecraft.HexTiles.Painter+{+ /// <summary>Statecraft/Hex Tiles/Hex Painter: loads a board into the open scene (one object per hex), picks a hex by+ /// clicking it in the Scene view, and edits its hex-tile presentation: prototype, ground, unit, facing and region (the+ /// trees of an environment hex). Each change rebuilds just that hex and is written to the board's+ /// <id>.overrides.json, so it survives regenerating the board (docs/hex-tiles/README.md, "Painting hexes by hand").+ /// Terrain, control and locations are the map editor's (#1009), not the painter's. Editor only; the board in the scene+ /// is never saved.</summary>+ public sealed class HexPainterWindow : EditorWindow+ {+ const string None = "(none)";+ string[] boards = Array.Empty<string>();+ int boardIndex;+ string boardId = "";+ GameObject? root;+ (int q, int r)? selected;+ bool pick = true;+ string status = "";+ Vector2 scroll;++ [MenuItem("Statecraft/Hex Tiles/Hex Painter")]+ public static void Open() => GetWindow<HexPainterWindow>("Hex Painter");++ string BoardsDir => Path.GetFullPath(Path.Combine(Application.dataPath, "..", HexPainter.BoardsFolder));+ HexBoardState? State => root != null ? root.GetComponent<HexBoardState>() : null;++ void OnEnable()+ {+ SceneView.duringSceneGui += OnScene;+ boards = Directory.Exists(BoardsDir) ? HexPainter.BoardIds(BoardsDir) : Array.Empty<string>();+ boardIndex = Mathf.Max(0, Array.IndexOf(boards, boardId));+ }++ void OnDisable() => SceneView.duringSceneGui -= OnScene;++ void OnGUI()+ {+ scroll = EditorGUILayout.BeginScrollView(scroll);+ EditorGUILayout.LabelField("Board", EditorStyles.boldLabel);+ using (new EditorGUILayout.HorizontalScope())+ {+ boardIndex = EditorGUILayout.Popup(boardIndex, boards);+ using (new EditorGUI.DisabledScope(boards.Length == 0))+ if (GUILayout.Button("Load into scene", GUILayout.Width(120))) Load(boards[boardIndex]);+ }+ if (GUILayout.Button("Add the captures' light and grade")) Capture.HexBoardCapture.Stage();+ var state = State;+ if (state == null)+ {+ EditorGUILayout.HelpBox("Load a board, then click a hex in the Scene view.", MessageType.Info);+ EditorGUILayout.EndScrollView();+ return;+ }+ EditorGUILayout.LabelField($"{boardId}: {state.Board.Hexes.Count} hexes. Edits go to {boardId}{HexBoardOverrides.Suffix}.json");+ pick = EditorGUILayout.ToggleLeft("Pick hexes in the Scene view", pick);++ EditorGUILayout.Space();+ if (selected == null || !state.Board.Hexes.TryGetValue(selected.Value, out var h))+ {+ EditorGUILayout.HelpBox("No hex selected.", MessageType.None);+ EditorGUILayout.EndScrollView();+ return;+ }+ var (q, r) = selected.Value;+ EditorGUILayout.LabelField($"Hex ({q}, {r})", EditorStyles.boldLabel);+ EditorGUILayout.LabelField("Terrain", h.terrain + (h.env ? ", environment ring" : "") + (h.region != "" ? $", region {h.region}" : ""));+ if (h.note != "") EditorGUILayout.LabelField("Note", h.note);+ Choice(q, r, "prototype", h.prototype, HexPrototypes.All.Keys.OrderBy(k => k, StringComparer.Ordinal).ToArray(), true);+ Choice(q, r, "ground", h.ground, HexGround.Ids.ToArray(), false);+ Choice(q, r, "unit", h.unit, HexUnitTypes.All.Keys.OrderBy(k => k, StringComparer.Ordinal).ToArray(), true);+ Choice(q, r, "region", h.region, state.Board.Regions.Keys.OrderBy(k => k, StringComparer.Ordinal).ToArray(), true);+ float facing = EditorGUILayout.DelayedFloatField("Facing (deg from north)", h.facing);+ if (!Mathf.Approximately(facing, h.facing)) Apply(q, r, "facing", facing.ToString("R", CultureInfo.InvariantCulture));+ if (status != "") EditorGUILayout.HelpBox(status, MessageType.None);+ EditorGUILayout.EndScrollView();+ }++ /// <summary>A dropdown of <paramref name="options"/> (with "(none)" for an empty value when allowed); a new pick+ /// is applied at once.</summary>+ void Choice(int q, int r, string field, string current, string[] options, bool allowNone)+ {+ var shown = allowNone ? new[] { None }.Concat(options).ToArray() : options;+ int at = Array.IndexOf(shown, current == "" && allowNone ? None : current);+ if (at < 0) { shown = shown.Append(current).ToArray(); at = shown.Length - 1; } // a value no longer registered+ int next = EditorGUILayout.Popup(ObjectNames.NicifyVariableName(field), at, shown);+ if (next != at) Apply(q, r, field, shown[next] == None ? "" : shown[next]);+ }++ void Apply(int q, int r, string field, string value)+ {+ if (root == null) return;+ var path = HexPainter.OverridesPath(BoardsDir, boardId);+ try+ {+ var report = HexPainter.Change(root, path, q, r, field, value);+ HexPainter.Import(path);+ status = $"({q},{r}) {field} = '{value}', written to {Path.GetFileName(path)}\n" + (report?.ToString() ?? "no tile on this hex");+ }+ catch (Exception e) { status = e.Message; Debug.LogException(e); }+ SceneView.RepaintAll();+ }++ void Load(string id)+ {+ foreach (var old in HexPainter.LoadedBoards()) Unload(old.gameObject);+ boardId = id; selected = null;+ try+ {+ root = HexPainter.Load(id);+ Physics.SyncTransforms();+ var b = HexBoardBuilder.Bounds(State!.Board);+ var centre = root.transform.TransformPoint(new Vector3(b.center.x, 0f, b.center.y));+ SceneView.lastActiveSceneView?.Frame(new Bounds(centre, new Vector3(b.width, 2000f, b.height)), false);+ status = $"loaded {id}";+ }+ catch (Exception e) { status = e.Message; Debug.LogException(e); }+ }++ static void Unload(GameObject board)+ {+ board.GetComponent<HexBoardAssets>()?.Teardown();+ DestroyImmediate(board);+ }++ void OnScene(SceneView view)+ {+ var state = State;+ if (root == null || state == null) return;+ var e = Event.current;+ int control = GUIUtility.GetControlID(FocusType.Passive);+ if (pick && e.type == EventType.Layout) HandleUtility.AddDefaultControl(control);+ if (pick && e.type == EventType.MouseDown && e.button == 0 && !e.alt)+ {+ var hit = HexPainter.Pick(root, HandleUtility.GUIPointToWorldRay(e.mousePosition));+ if (hit != null) { selected = hit; status = ""; Repaint(); e.Use(); }+ }+ if (selected != null && e.type == EventType.Repaint)+ {+ var (q, r) = selected.Value;+ var corners = HexGeometry.Corners(HexGeometry.Centre(q, r, HexScale.HexM), HexScale.HexM)+ .Select(c => root.transform.TransformPoint(new Vector3(c.x, Mathf.Max(state.Surface.Height(c), 0f) + 60f, c.z))).ToList();+ corners.Add(corners[0]);+ Handles.color = new Color(1f, 0.85f, 0.2f);+ Handles.DrawAAPolyLine(6f, corners.ToArray());+ }+ }+ }+}diff --git a/unity/Assets/Editor/HexTiles/Painter/HexPainterWindow.cs.meta b/unity/Assets/Editor/HexTiles/Painter/HexPainterWindow.cs.metanew file mode 100644index 000000000..c3257335c--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Painter/HexPainterWindow.cs.meta@@ -0,0 +1,2 @@+fileFormatVersion: 2+guid: 785d3af1c64074b86a47e85194ae5b6d\ No newline at end of filediff --git a/unity/Assets/Editor/HexTiles/Tests/HexPainterTests.cs b/unity/Assets/Editor/HexTiles/Tests/HexPainterTests.csnew file mode 100644index 000000000..e8d9f85ce--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Tests/HexPainterTests.cs@@ -0,0 +1,692 @@+#nullable enable+using System;+using System.Collections.Generic;+using System.IO;+using System.Linq;+using NUnit.Framework;+using Statecraft.HexTiles;+using Statecraft.HexTiles.Painter;+using UnityEditor;+using UnityEditor.SceneManagement;+using UnityEngine;+using Object = UnityEngine.Object;++/// <summary>The map builder's hand edits (HexBoardOverrides), the Hex Painter's write-back and one-hex rebuild, and+/// the environment's region species (docs/hex-tiles/README.md, "Laying out the whole map").</summary>+public class HexPainterTests+{+ string dir = "";++ [SetUp] public void MakeDir() { dir = Path.Combine(Path.GetTempPath(), "hex-painter-" + Guid.NewGuid().ToString("N")); Directory.CreateDirectory(dir); }+ [TearDown] public void RemoveDir() { if (Directory.Exists(dir)) Directory.Delete(dir, true); }++ /// <summary>Every edit as (q, r, field, value), field by field in HexBoardOverrides.Fields order.</summary>+ static IEnumerable<(int, int, string, string)> All(HexBoardOverrides o) =>+ HexBoardOverrides.Fields.SelectMany(f => o.List(f).Select(e => (e.hex.q, e.hex.r, f, e.value))).ToList();++ static HexBoard Board(params BoardHex[] hexes) => new HexBoard(new HexBoardFile { id = "t", hexes = hexes });+ static BoardHex Hex(int q, int r, string prototype = "wheat_fields", string unit = "", float facing = 0f, string ground = "grass") =>+ new BoardHex { q = q, r = r, prototype = prototype, unit = unit, facing = facing, ground = ground };++ // --- Overrides merge ---++ [Test]+ public void AnEditSetsOnlyItsOwnField()+ {+ var board = Board(Hex(0, 0, unit: "palmach_squad", facing: 30f));+ var o = new HexBoardOverrides(); o.Record(0, 0, "prototype", "kibbutz");+ o.Apply(board);+ var h = board.Hexes[(0, 0)];+ Assert.That((h.prototype, h.unit, h.facing, h.ground), Is.EqualTo(("kibbutz", "palmach_squad", 30f, "grass")));+ }++ [Test]+ public void AnEmptyUnitAndAZeroFacingAreEditsToo()+ {+ var board = Board(Hex(0, 0, unit: "palmach_squad", facing: 30f));+ var o = new HexBoardOverrides(); o.Record(0, 0, "unit", ""); o.Record(0, 0, "facing", "0");+ HexBoardOverrides.FromJson(o.ToJson()).Apply(board);+ Assert.That((board.Hexes[(0, 0)].unit, board.Hexes[(0, 0)].facing), Is.EqualTo(("", 0f)));+ }++ [Test]+ public void ALaterEditOfTheSameFieldReplacesTheEarlierOne()+ {+ var o = new HexBoardOverrides();+ o.Record(1, 2, "prototype", "kibbutz"); o.Record(1, 2, "ground", "plains"); o.Record(1, 2, "prototype", "pine_forest");+ Assert.That(All(o), Is.EqualTo(new[] { (1, 2, "prototype", "pine_forest"), (1, 2, "ground", "plains") }));+ }++ [Test]+ public void EditsOfHexesTheBoardLacksAreReportedNotApplied()+ {+ var board = Board(Hex(0, 0));+ var o = new HexBoardOverrides(); o.Record(5, 5, "prototype", "kibbutz"); o.Record(0, 0, "ground", "desert");+ var missing = o.Apply(board);+ Assert.That(missing.Select(m => (m.field, m.edit.hex.q, m.edit.hex.r)), Is.EqualTo(new[] { ("prototype", 5, 5) }));+ Assert.That(board.Hexes[(0, 0)].ground, Is.EqualTo("desert"));+ }++ [Test]+ public void AnUnknownFieldOrAHexTwiceIsRefused()+ {+ // Terrain, control and locations are the map editor's (content/map/overrides.yaml), not the hex painter's.+ Assert.Throws<ArgumentException>(() => new HexBoardOverrides().Record(0, 0, "terrain", "water"));+ Assert.Throws<ArgumentException>(() => HexBoardOverrides.FromJson(+ "{\"ground\": [{\"hex\": {\"q\": 0, \"r\": 0}, \"value\": \"desert\"}, {\"hex\": {\"q\": 0, \"r\": 0}, \"value\": \"grass\"}]}"));+ }++ [Test]+ public void TheGeneratorsFileFormatReadsBack()+ {+ // As tools/hex_tiles/make_board.py reads it: the shape of content/map/overrides.yaml, one list per field.+ var o = HexBoardOverrides.FromJson("{\"board\": \"israel\", \"facing\": [{\"hex\": {\"q\": -3, \"r\": 19}, \"value\": \"90.5\"}]}");+ var board = Board(Hex(-3, 19));+ o.Apply(board);+ Assert.That(board.Hexes[(-3, 19)].facing, Is.EqualTo(90.5f));+ }++ // --- The painter's write-back ---++ [Test]+ public void WriteBackRecordsTheEditAndChangesTheBoard()+ {+ var board = Board(Hex(0, 0), Hex(1, 0));+ var path = HexPainter.OverridesPath(dir, "t");+ HexPainter.Write(board, path, 0, 0, "prototype", "kibbutz");+ HexPainter.Write(board, path, 1, 0, "unit", "palmach_squad");+ HexPainter.Write(board, path, 0, 0, "prototype", "pine_forest");+ Assert.That(Path.GetFileName(path), Is.EqualTo("t.overrides.json"));+ var saved = HexBoardOverrides.FromJson(File.ReadAllText(path));+ Assert.That(saved.board, Is.EqualTo("t"));+ Assert.That(All(saved), Is.EqualTo(new[] { (0, 0, "prototype", "pine_forest"), (1, 0, "unit", "palmach_squad") }));+ Assert.That((board.Hexes[(0, 0)].prototype, board.Hexes[(1, 0)].unit), Is.EqualTo(("pine_forest", "palmach_squad")));+ // The file alone gives the same board again (what regenerating and then loading does).+ var fresh = Board(Hex(0, 0), Hex(1, 0));+ saved.Apply(fresh);+ Assert.That((fresh.Hexes[(0, 0)].prototype, fresh.Hexes[(1, 0)].unit), Is.EqualTo(("pine_forest", "palmach_squad")));+ }++ [Test]+ public void WriteBackRefusesUnknownValuesAndLeavesTheFileAlone()+ {+ var board = Board(Hex(0, 0));+ var path = HexPainter.OverridesPath(dir, "t");+ Assert.Throws<ArgumentException>(() => HexPainter.Write(board, path, 0, 0, "prototype", "no_such_tile"));+ Assert.Throws<ArgumentException>(() => HexPainter.Write(board, path, 0, 0, "ground", "lava"));+ Assert.Throws<ArgumentException>(() => HexPainter.Write(board, path, 9, 9, "ground", "desert"));+ Assert.That(File.Exists(path), Is.False);+ Assert.That(board.Hexes[(0, 0)].prototype, Is.EqualTo("wheat_fields"));+ }++ [Test]+ public void BoardIdsLeaveOutOverridesFiles()+ {+ File.WriteAllText(Path.Combine(dir, "b.json"), "{}");+ File.WriteAllText(Path.Combine(dir, "a.json"), "{}");+ File.WriteAllText(Path.Combine(dir, "a.overrides.json"), "{}");+ Assert.That(HexPainter.BoardIds(dir), Is.EqualTo(new[] { "a", "b" }));+ }++ [Test]+ public void ChangeRebuildsOnlyThatHexAndItsGround()+ {+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ var file = new HexBoardFile+ {+ id = "t",+ hexes = new[] { Hex(0, 0), Hex(1, 0, "pine_forest"), Hex(0, 1, "olive_terraces"), Hex(-1, 1, unit: "palmach_squad"), Hex(1, -1, ""),+ new BoardHex { q = -1, r = 0, terrain = "hills", ground = "hills", env = true } },+ regions = new[] { new BoardRegion { id = "south", hills = new[] { new BoardSpecies { model = "sandbox:acacia_lite" } }, density = 3f } },+ };+ var (root, _) = HexBoardBuilder.Build(new HexBoard(file), null, options: new HexBoardBuilder.Options { PerHex = true });+ try+ {+ var pieces = root.transform.Find(HexBoardBuilder.PiecesName);+ int Id(int q, int r) => pieces.Find(HexBoardBuilder.HexName(q, r))!.gameObject.GetInstanceID();+ int other = Id(1, 0), third = Id(0, 1), mine = Id(0, 0);+ var state = root.GetComponent<HexBoardState>();+ float Desert()+ {+ var c = HexGeometry.Centre(1, -1, HexScale.HexM);+ int n = state.Terrain.alphamapResolution;+ int x = Mathf.RoundToInt((c.x - state.Rect.x) / state.Rect.width * (n - 1)), z = Mathf.RoundToInt((c.z - state.Rect.y) / state.Rect.height * (n - 1));+ return state.Terrain.GetAlphamaps(x, z, 1, 1)[0, 0, HexGround.Ids.ToList().IndexOf("desert")];+ }+ Assert.That(Desert(), Is.LessThan(0.01f));++ // Picking: a click meets the terrain, so even a shallow ray onto a hill's top finds that hill, not the hex+ // where the ray would reach sea level (about 7 km on).+ Physics.SyncTransforms();+ var top = HexGeometry.Centre(-1, 0, HexScale.HexM); top.y = state.Surface.Height(top);+ Assert.That(top.y, Is.GreaterThan(400f));+ Assert.That(HexPainter.Pick(root, new Ray(top + Vector3.up * 5000f, Vector3.down)), Is.EqualTo(((int, int)?)(-1, 0)));+ var shallow = Quaternion.Euler(5f, 0f, 0f) * Vector3.forward;+ Assert.That(HexPainter.Pick(root, new Ray(top - shallow * 20000f, shallow)), Is.EqualTo(((int, int)?)(-1, 0)));+ Assert.That(HexPainter.Pick(root, new Ray(new Vector3(9e5f, 3000f, 9e5f), Vector3.down)), Is.Null, "off the board");++ var path = HexPainter.OverridesPath(dir, "t");+ var report = HexPainter.Change(root, path, 0, 0, "prototype", "pine_forest");+ Assert.That(report!.Prototype, Is.EqualTo("pine_forest"));+ Assert.That(Id(1, 0), Is.EqualTo(other)); Assert.That(Id(0, 1), Is.EqualTo(third));+ Assert.That(Id(0, 0), Is.Not.EqualTo(mine));+ Assert.That(pieces.Cast<Transform>().Count(t => t.name == HexBoardBuilder.HexName(0, 0)), Is.EqualTo(1));++ Assert.That(HexPainter.Change(root, path, 1, -1, "ground", "desert"), Is.Null, "a hex with no prototype has no tile");+ Assert.That(Desert(), Is.GreaterThan(0.5f), "the hex's ground is repainted");++ var units = root.transform.Find(HexBoardBuilder.UnitsName);+ HexPainter.Change(root, path, -1, 1, "unit", "");+ Assert.That(units.Find(HexBoardBuilder.UnitName(-1, 1)), Is.Null);+ HexPainter.Change(root, path, 0, 0, "unit", "palmach_squad");+ Assert.That(units.Find(HexBoardBuilder.UnitName(0, 0)).childCount, Is.EqualTo(HexUnitScale.Characters));++ // An environment hex's region sets its trees: only its own env group is rebuilt.+ int env = pieces.Find(HexBoardBuilder.EnvName(-1, 0))!.gameObject.GetInstanceID();+ Assert.Throws<ArgumentException>(() => HexPainter.Change(root, path, -1, 0, "region", "nowhere"));+ HexPainter.Change(root, path, -1, 0, "region", "south");+ Assert.That(pieces.Find(HexBoardBuilder.EnvName(-1, 0))!.gameObject.GetInstanceID(), Is.Not.EqualTo(env));+ Assert.That(HexEnvironment.DressHex(state.Board, state.Board.Hexes[(-1, 0)], state.Surface, state.Seed).Where(p => p.StandIn != StandIn.Rock)+ .Select(p => p.Model).Distinct(), Is.EqualTo(new[] { "sandbox:acacia_lite" }));+ Assert.That(Id(1, 0), Is.EqualTo(other));++ var saved = HexBoardOverrides.FromJson(File.ReadAllText(path));+ Assert.That(All(saved).Select(e => (e.Item1, e.Item2, e.Item3)),+ Is.EqualTo(new[] { (0, 0, "prototype"), (1, -1, "ground"), (-1, 1, "unit"), (0, 0, "unit"), (-1, 0, "region") }));+ }+ finally+ {+ root.GetComponent<HexBoardAssets>().Teardown();+ Object.DestroyImmediate(root);+ }+ }++ [Test]+ public void LoadAppliesTheBoardsSiblingOverrides()+ {+ const string id = "zz_painter_test";+ string folder = HexPainter.BoardsFolder, board = $"{folder}/{id}.json", over = $"{folder}/{id}{HexBoardOverrides.Suffix}.json";+ try+ {+ File.WriteAllText(board, JsonUtility.ToJson(new HexBoardFile { id = id, hexes = new[] { Hex(0, 0), Hex(1, 0) } }));+ var o = new HexBoardOverrides { board = id }; o.Record(1, 0, "prototype", "kibbutz");+ File.WriteAllText(over, o.ToJson());+ AssetDatabase.ImportAsset(board); AssetDatabase.ImportAsset(over);+ var loaded = HexBoard.Load(id);+ Assert.That((loaded.Hexes[(0, 0)].prototype, loaded.Hexes[(1, 0)].prototype), Is.EqualTo(("wheat_fields", "kibbutz")));+ }+ finally+ {+ AssetDatabase.DeleteAsset(board); AssetDatabase.DeleteAsset(over);+ }+ }++ // --- The environment's region species ---++ static HexBoard EnvBoard(BoardRegion[] regions, string region, string terrain = "flat")+ {+ var hexes = new List<BoardHex>();+ for (int q = -2; q <= 2; q++)+ for (int r = -2; r <= 2; r++)+ if (HexGeometry.Distance(0, 0, q, r) <= 2) hexes.Add(new BoardHex { q = q, r = r, terrain = terrain, env = true, region = region });+ return new HexBoard(new HexBoardFile { id = "env", hexes = hexes.ToArray(), regions = regions });+ }++ [Test]+ public void EnvironmentPlantsTheRegionsSpecies()+ {+ var desert = new BoardRegion+ {+ id = "south", density = 2f, flat = new[] { new BoardSpecies { model = "sandbox:acacia_lite", weight = 1f } },+ rock = "sandbox:desert_rock*", rockChance = 1f, rocksOnFlat = true,+ };+ var board = EnvBoard(new[] { desert }, "south");+ var models = HexEnvironment.Dress(board, new FlatSurface()).Select(p => p.Model).Distinct().OrderBy(m => m).ToArray();+ Assert.That(models, Is.EqualTo(new[] { "sandbox:acacia_lite", "sandbox:desert_rock*" }));+ }++ [Test]+ public void DensityScalesTheRegionsTrees()+ {+ int Count(float density) => HexEnvironment.Dress(EnvBoard(new[] { new BoardRegion { id = "x", density = density } }, "x"), new FlatSurface())+ .Count(p => p.StandIn != StandIn.Rock);+ Assert.That(Count(0.3f), Is.LessThan(Count(1f)));+ Assert.That(Count(1f), Is.LessThan(Count(2f)));+ }++ [TestCase("flat")]+ [TestCase("hills")]+ public void AHexWithNoRegionPlantsWhatTheEnvironmentDidBeforeRegions(string terrain)+ {+ // An unknown region falls back to the built-in mix too.+ foreach (var region in new[] { "", "nowhere" })+ {+ var board = EnvBoard(Array.Empty<BoardRegion>(), region, terrain);+ var now = HexEnvironment.Dress(board, new FlatSurface()).Select(p => (p.Model, p.StandIn, p.Matrix)).ToList();+ var before = LegacyDress(board, new FlatSurface()).Select(p => (p.Model, p.StandIn, p.Matrix)).ToList();+ Assert.That(now.Count, Is.GreaterThan(0));+ CollectionAssert.AreEqual(before, now, $"{terrain}, region '{region}'");+ }+ }++ /// <summary>HexEnvironment.Dress as it was before regions (hard-coded olive, carob, oak, pine and limestone).</summary>+ static IEnumerable<HexPlacement> LegacyDress(HexBoard board, IHexSurface surface, int seed = 1948)+ {+ const float GridM = 820f, WoodScaleM = 7000f, DetailScaleM = 1900f;+ foreach (var h in board.Hexes.Values)+ {+ if (!h.env || HexBoard.TerrainOf(h) == HexTerrain.Water) continue;+ var ctx = new HexTileContext(h.q, h.r, surface, seed ^ 0x5eed, HexScale.HexM, insetShare: 0f);+ var c = ctx.Centre;+ bool hills = HexBoard.TerrainOf(h) != HexTerrain.Flat;+ int n = Mathf.CeilToInt(HexScale.HexM / GridM);+ for (int i = -n; i <= n; i++)+ for (int j = -n; j <= n; j++)+ {+ float gx = Mathf.Round(c.x / GridM) * GridM + i * GridM, gz = Mathf.Round(c.z / GridM) * GridM + j * GridM;+ uint hsh = unchecked((uint)(Mathf.FloorToInt(gx) * 73856093 ^ Mathf.FloorToInt(gz) * 19349663 ^ seed));+ float r1 = (hsh & 0xFFFF) / 65535f, r2 = ((hsh >> 16) & 0xFFFF) / 65535f;+ var p = new Vector3(gx + (r1 - 0.5f) * GridM * 0.8f, 0f, gz + (r2 - 0.5f) * GridM * 0.8f);+ if (!HexGeometry.InHex(p, c, HexScale.HexM)) continue;+ float wood = Mathf.PerlinNoise(p.x / WoodScaleM + 3.3f, p.z / WoodScaleM + 7.7f);+ float detail = Mathf.PerlinNoise(p.x / DetailScaleM + 1.1f, p.z / DetailScaleM + 2.2f);+ float density = hills ? Mathf.SmoothStep(0f, 1f, Mathf.InverseLerp(0.48f, 0.6f, wood)) : Mathf.SmoothStep(0f, 1f, Mathf.InverseLerp(0.56f, 0.68f, wood)) * 0.85f;+ density = Mathf.Max(density * (0.6f + 0.6f * detail), 0.035f);+ if (r1 * 0.7f + r2 * 0.3f > density) continue;+ string model = hills ? (detail > 0.55f ? "sandbox:aleppo_pine_lite" : "sandbox:tabor_oak_lite") : (detail > 0.6f ? "sandbox:carob_lite" : "sandbox:olive_lite");+ ctx.PlaceByHeight(model, p, r1 * 360f, (0.11f + 0.04f * r2) * HexScale.HexM, hills && detail > 0.55f ? StandIn.Pine : StandIn.Tree, null, 0.3f, 40f);+ }+ if (hills)+ for (int k = 0; k < 2; k++)+ if (ctx.Rng.NextDouble() < 0.6)+ ctx.PlaceByWidth("sandbox:limestone*", ctx.RandomPoint(), ctx.Range(0f, 360f), ctx.Range(0.06f, 0.1f) * HexScale.HexM, StandIn.Rock, null, 60f);+ foreach (var placement in ctx.Placements) yield return placement;+ }+ }+ [Test]+ public void RebuildingAHexReleasesOnlyItsOwnedUnitAssets()+ {+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ var board = Board(Hex(0, 0, prototype: ""), Hex(1, 0, prototype: ""));+ var (root, _) = HexBoardBuilder.Build(board, null, options: new HexBoardBuilder.Options { PerHex = true });+ string sharedPath = "Assets/__HexPainterShared-" + Guid.NewGuid().ToString("N") + ".mat";+ Material? createdMaterial = null;+ try+ {+ var state = root.GetComponent<HexBoardState>();+ var owner = root.GetComponent<HexBoardAssets>();+ var units = root.transform.Find(HexBoardBuilder.UnitsName);+ var oldHolder = new GameObject(HexBoardBuilder.UnitName(0, 0));+ oldHolder.transform.SetParent(units, false);+ // Empty model is guaranteed missing by HexModels.Prefab's public contract, independently of local assets.+ Assert.That(HexModels.Prefab(""), Is.Null);+ var oldUnit = new HexUnit { Members = new List<HexUnitMember> { new HexUnitMember { Model = "", StandIn = StandIn.Box } } };+ var motion = new HexUnitMotion(oldUnit, new[] { (0, 0) }, state.Surface, oldHolder.transform);+ motion.Pose(0f, false);+ var oldMaterial = motion.Objects.Single().GetComponent<MeshRenderer>().sharedMaterial;+ Assert.That(oldHolder.GetComponentInParent<HexBoardAssets>(), Is.SameAs(owner));+ Assert.That(oldMaterial != null, Is.True, "the old fallback must really exist");+ Assert.That(AssetDatabase.Contains(oldMaterial), Is.False, "this is a generated stand-in, not an imported shared asset");+ int oldId = oldMaterial!.GetInstanceID();+ var primitiveMesh = motion.Objects.Single().GetComponent<MeshFilter>().sharedMesh;+ Assert.That(primitiveMesh != null, Is.True, "the primitive must have a shared mesh");+ var untouchedHolder = new GameObject(HexBoardBuilder.UnitName(1, 0));+ untouchedHolder.transform.SetParent(units, false);+ var untouched = new HexUnitMotion(oldUnit, new[] { (1, 0) }, state.Surface, untouchedHolder.transform);+ untouched.Pose(0f, false);+ var untouchedMaterial = untouched.Objects.Single().GetComponent<MeshRenderer>().sharedMaterial;+ Assert.That(untouchedMaterial != null, Is.True);+ Assert.That(untouchedMaterial, Is.Not.SameAs(oldMaterial), "each unit owns a distinct fallback");+ Assert.That(untouched.Objects.Single().GetComponent<MeshFilter>().sharedMesh, Is.SameAs(primitiveMesh));+ createdMaterial = HexMaterials.New(HexMaterials.Lit);+ AssetDatabase.CreateAsset(createdMaterial, sharedPath);+ var importedMaterial = AssetDatabase.LoadAssetAtPath<Material>(sharedPath)+ ?? throw new InvalidOperationException("the created shared material asset must load before the edit");+ Assert.That(AssetDatabase.Contains(importedMaterial), Is.True, "the shared-material control must be a real asset");+ int importedId = importedMaterial.GetInstanceID();+ string importedPath = AssetDatabase.GetAssetPath(importedMaterial);+ string importedGuid = AssetDatabase.AssetPathToGUID(sharedPath, AssetPathToGUIDOptions.OnlyExistingAssets);+ Assert.That(importedPath, Is.EqualTo(sharedPath));+ Assert.That(importedGuid, Is.Not.Empty);+ var loadedBefore = AssetDatabase.LoadAssetAtPath<Material>(sharedPath);+ Assert.That(loadedBefore != null, Is.True);+ UnityEngine.Debug.Log($"PAINTERASSET before createdId={createdMaterial.GetInstanceID()} originalId={importedId} loadedId={loadedBefore!.GetInstanceID()} guid={importedGuid} path={importedPath} unityEqual={loadedBefore == importedMaterial} managedEqual={ReferenceEquals(loadedBefore, importedMaterial)}");+ var importedRenderer = new GameObject("shared-imported-material", typeof(MeshRenderer));+ importedRenderer.transform.SetParent(oldHolder.transform, false);+ importedRenderer.GetComponent<MeshRenderer>().sharedMaterial = importedMaterial;++ // Change uses the real write-back + RebuildHex path; no type registry/private ownership seam is replaced.+ HexPainter.Change(root, HexPainter.OverridesPath(dir, "t"), 0, 0, "unit", "sandwich_truck");+ Assert.That(oldHolder == null, Is.True, "the old unit's hierarchy must be removed");+ var current = units.Find(HexBoardBuilder.UnitName(0, 0));+ Assert.That(current != null, Is.True, "the replacement unit must exist");+ var currentMaterials = current!.GetComponentsInChildren<Renderer>(true).SelectMany(r => r.sharedMaterials).ToArray();+ Assert.That(currentMaterials.Length, Is.GreaterThan(0));+ Assert.That(currentMaterials.All(m => m != null), Is.True, "the replacement must keep valid materials");+ UnityEngine.Debug.Log($"PAINTERMATERIAL oldId={oldId} oldAlive={oldMaterial != null} currentMaterials={currentMaterials.Length} currentAlive={currentMaterials.All(m => m != null)}");+ Assert.That(oldMaterial == null, Is.True, "removed unit fallback material must be released, not retained by the board owner");+ Assert.That(primitiveMesh != null, Is.True, "a shared primitive mesh must survive the removed unit");+ Assert.That(untouchedHolder != null && untouchedMaterial != null, Is.True, "another unit and its material must survive");+ Assert.That(untouched.Objects.Single().GetComponent<MeshRenderer>().sharedMaterial, Is.SameAs(untouchedMaterial));+ Assert.That(importedMaterial != null && AssetDatabase.Contains(importedMaterial), Is.True, "imported shared materials must survive");+ var loadedAfter = AssetDatabase.LoadAssetAtPath<Material>(sharedPath);+ Assert.That(loadedAfter != null, Is.True, "the imported material must still load");+ string afterGuid = AssetDatabase.AssetPathToGUID(sharedPath, AssetPathToGUIDOptions.OnlyExistingAssets);+ string afterPath = AssetDatabase.GetAssetPath(loadedAfter);+ UnityEngine.Debug.Log($"PAINTERASSET after originalId={importedMaterial!.GetInstanceID()} loadedId={loadedAfter!.GetInstanceID()} guid={afterGuid} path={afterPath} unityEqual={loadedAfter == importedMaterial} managedEqual={ReferenceEquals(loadedAfter, importedMaterial)}");+ Assert.That(importedMaterial!.GetInstanceID(), Is.EqualTo(importedId), "the original native material must survive");+ Assert.That(afterGuid, Is.EqualTo(importedGuid));+ Assert.That(afterPath, Is.EqualTo(importedPath));+ Assert.That(loadedAfter == importedMaterial, Is.True, "the path must resolve to the same native Unity material");+ }+ finally+ {+ root.GetComponent<HexBoardAssets>().Teardown();+ Object.DestroyImmediate(root);+ AssetDatabase.DeleteAsset(sharedPath);+ if (createdMaterial != null) Object.DestroyImmediate(createdMaterial);+ }+ }++ [Test]+ public void PainterPreviewHierarchyIsExcludedFromAnOrdinarySceneSave()+ {+ var scene = EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ string token = Guid.NewGuid().ToString("N");+ string id = "__PainterSave-" + token;+ string jsonPath = HexPainter.BoardsFolder + "/" + id + ".json";+ string scenePath = "Assets/__PainterSave-" + token + ".unity";+ string previewName = "PainterPreview-" + token;+ string markerName = "PainterOrdinaryMarker-" + token;+ GameObject? preview = null, secondPreview = null, ordinaryBoard = null;+ try+ {+ var file = new HexBoardFile { id = id, hexes = new[] { Hex(0, 0, prototype: "", unit: "sandwich_truck") } };+ File.WriteAllText(jsonPath, JsonUtility.ToJson(file));+ AssetDatabase.ImportAsset(jsonPath, ImportAssetOptions.ForceSynchronousImport);+ // This is the same public load path the window calls, with no synthetic hide flags or private seam.+ preview = HexPainter.Load(id);+ Assert.That(preview != null, Is.True);+ secondPreview = HexPainter.Load(id);+ ordinaryBoard = new GameObject("PainterOrdinaryBoard-" + token);+ var ordinaryState = ordinaryBoard.AddComponent<HexBoardState>();+ var previewObjects = preview!.GetComponentsInChildren<Transform>(true)+ .Concat(secondPreview.GetComponentsInChildren<Transform>(true)).Select(t => t.gameObject).ToArray();+ Assert.That(previewObjects.Length, Is.GreaterThan(1), "the real preview must include descendants");+ for (int i = 0; i < previewObjects.Length; i++) previewObjects[i].name = previewName + "-" + i.ToString("D4");+ string[] previewNames = previewObjects.Select(go => go.name).ToArray();+ var state = preview.GetComponent<HexBoardState>();+ var expectedStates = new[] { state, secondPreview.GetComponent<HexBoardState>(), ordinaryState };+ var loaded = HexPainter.LoadedBoards();+ Assert.That(loaded.Select(s => s.GetInstanceID()), Is.EquivalentTo(expectedStates.Select(s => s.GetInstanceID())),+ "the window snapshot must contain both real previews and the ordinary scene board once each");+ Assert.That(loaded.Select(s => s.GetInstanceID()).Distinct().Count(), Is.EqualTo(loaded.Length));+ var localCentre = HexGeometry.Centre(0, 0, HexScale.HexM);+ localCentre.y = state.Surface.Height(localCentre);+ var ray = new Ray(preview.transform.TransformPoint(localCentre) + Vector3.up * 10000f, Vector3.down);+ Physics.SyncTransforms();+ Assert.That(Physics.RaycastAll(ray, 20000f).Any(h => h.collider.transform.IsChildOf(preview.transform)), Is.True,+ "preview terrain must remain in the physics scene after editor save flags");+ Assert.That(HexPainter.Pick(preview, ray), Is.EqualTo((0, 0)), "the public painter pick must keep working");+ Assert.That(preview.activeInHierarchy, Is.True);+ var marker = new GameObject(markerName);+ Assert.That(marker.hideFlags, Is.EqualTo(HideFlags.None));+ bool saved = EditorSceneManager.SaveScene(scene, scenePath);+ Assert.That(saved, Is.True, "the ordinary scene save must actually succeed");+ string yaml = File.ReadAllText(scenePath);+ Assert.That(yaml.Contains(markerName), Is.True, "positive control: ordinary scene objects must be serialized");+ string[] serializedPreviewNames = previewNames.Where(name => yaml.Contains(name)).ToArray();+ bool previewSerialized = serializedPreviewNames.Length > 0;+ string yamlHash;+ using (var hash = System.Security.Cryptography.SHA256.Create())+ yamlHash = BitConverter.ToString(hash.ComputeHash(System.Text.Encoding.UTF8.GetBytes(yaml))).Replace("-", "").ToLowerInvariant();+ UnityEngine.Debug.Log($"PAINTERSCENE saved={saved} previewFlags={preview.hideFlags} previewSerialized={previewSerialized} previewObjects={previewObjects.Length} serializedNames={string.Join(",", serializedPreviewNames)} markerSerialized={yaml.Contains(markerName)} yamlSHA256={yamlHash} path={scenePath}");+ Assert.That(previewSerialized, Is.False, "no painter preview root or descendant may be serialized by an ordinary scene save");+ foreach (var old in loaded)+ {+ old.GetComponent<HexBoardAssets>()?.Teardown();+ Object.DestroyImmediate(old.gameObject);+ }+ Assert.That(preview == null && secondPreview == null && ordinaryBoard == null, Is.True,+ "the materialized window snapshot must unload every discovered board");+ Assert.That(marker != null, Is.True, "unloading boards must leave unrelated scene objects alive");+ }+ finally+ {+ if (preview != null)+ {+ preview.GetComponent<HexBoardAssets>().Teardown();+ Object.DestroyImmediate(preview);+ }+ if (secondPreview != null)+ {+ secondPreview.GetComponent<HexBoardAssets>().Teardown();+ Object.DestroyImmediate(secondPreview);+ }+ if (ordinaryBoard != null) Object.DestroyImmediate(ordinaryBoard);+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ AssetDatabase.DeleteAsset(scenePath);+ AssetDatabase.DeleteAsset(jsonPath);+ }+ }++}++// Real domain-reload regression: generated native ownership survives reload until actual preview teardown.+[Serializable]+public sealed class PainterDomainReloadTests+{+ const string PendingKey = "Statecraft.Tests.PainterDomainReload.Pending";+ static readonly string DomainNonce = Guid.NewGuid().ToString("N");+ [Serializable] sealed class Config { public string token = ""; }+ [Serializable] sealed class AssetRef+ {+ public int id; public string name = "", type = "";+ }+ [Serializable] sealed class Record+ {+ public string token = "", nonce = "", boardId = "", jsonPath = "", materialPath = "", materialGuid = "";+ public int previewId, stateId, markerId, sharedMeshId;+ public AssetRef createdControl = new AssetRef();+ public AssetRef[] owned = Array.Empty<AssetRef>();+ }+ [SerializeField] string evidence = ""; // TF1.6 restores serializable fixture fields after the actual domain reload.+ string Evidence+ {+ get+ {+ const string prefix = "statecraft-painter-domain-";+ var full = Path.GetFullPath(evidence);+ var name = Path.GetFileName(full);+ var parent = Path.GetDirectoryName(full);+ var temp = Path.GetFullPath(Path.GetTempPath()).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);+ if (parent != temp || !name.StartsWith(prefix, StringComparison.Ordinal)+ || !Guid.TryParseExact(name.Substring(prefix.Length), "N", out _))+ throw new InvalidOperationException("invalid owned domain-reload evidence path");+ return full;+ }+ }+ string RecordPath => Path.Combine(Evidence, "before-reload.json");+ Config Settings => JsonUtility.FromJson<Config>(File.ReadAllText(Path.Combine(Evidence, "config.json")));+ Record Before => JsonUtility.FromJson<Record>(File.ReadAllText(RecordPath));+ static string Key(string token) => "Statecraft.PainterDomainProbe." + token;+ static UnityEngine.Object? Native(int id) => id == 0 ? null : Resources.FindObjectsOfTypeAll<UnityEngine.Object>()+ .FirstOrDefault(o => o != null && o.GetInstanceID() == id);+ static bool Alive(AssetRef a)+ {+ var o = Native(a.id);+ return o != null && o.name == a.name && o.GetType().FullName == a.type;+ }++ [UnityEngine.TestTools.UnitySetUp]+ public System.Collections.IEnumerator RequestAnActualDomainReload()+ {+ // A new fixture allocates its own checkpoint; TF restores only this field across the actual reload.+ if (string.IsNullOrEmpty(evidence))+ {+ var token = Guid.NewGuid().ToString("N");+ Assert.That(SessionState.GetString(PendingKey, ""), Is.Empty, "unfinished domain fixture must not be mistaken for a new reload");+ var path = Path.Combine(Path.GetTempPath(), "statecraft-painter-domain-" + token);+ Assert.That(Directory.Exists(path) || File.Exists(path), Is.False, "new fixture evidence path must be fresh");+ evidence = path;+ Directory.CreateDirectory(Evidence);+ SessionState.SetString(PendingKey, evidence);+ File.WriteAllText(Path.Combine(Evidence, "config.json"), JsonUtility.ToJson(new Config { token = token }));+ }+ if (!File.Exists(RecordPath))+ {+ var cfg = Settings;+ Assert.That(cfg.token, Does.Match("^[a-f0-9]{32}$"));+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ var rec = new Record { token = cfg.token, nonce = DomainNonce, boardId = "000Domain-" + cfg.token };+ rec.jsonPath = HexPainter.BoardsFolder + "/" + rec.boardId + ".json";+ rec.materialPath = "Assets/__DomainControl-" + cfg.token + ".mat";+ // Save the cleanup paths before any Unity object creation.+ File.WriteAllText(RecordPath, JsonUtility.ToJson(rec, true));+ var file = new HexBoardFile { id = rec.boardId, hexes = new[] { new BoardHex { q = 0, r = 0, prototype = "" } } };+ File.WriteAllText(rec.jsonPath, JsonUtility.ToJson(file));+ AssetDatabase.ImportAsset(rec.jsonPath, ImportAssetOptions.ForceSynchronousImport);+ var preview = HexPainter.Load(rec.boardId);+ preview.name = "DomainPreview-" + cfg.token;+ rec.previewId = preview.GetInstanceID();+ var state = preview.GetComponent<HexBoardState>() ?? throw new InvalidOperationException("loaded preview lacks HexBoardState");+ rec.stateId = state.GetInstanceID();+ File.WriteAllText(RecordPath, JsonUtility.ToJson(rec, true));+ var sea = preview.transform.Find("HexBoardSea");+ Assert.That(sea != null, Is.True);+ if (sea == null) throw new InvalidOperationException("loaded preview lacks sea");+ var holder = new GameObject("DomainFallback-" + cfg.token);+ holder.transform.SetParent(preview.transform, false);+ Assert.That(HexModels.Prefab(""), Is.Null);+ var motion = new HexUnitMotion(new HexUnit { Members = new List<HexUnitMember> {+ new HexUnitMember { Model = "", StandIn = StandIn.Box } } }, new[] { (0, 0) }, state.Surface, holder.transform);+ motion.Pose(0f, false);+ var fallback = motion.Objects.Single();+ rec.sharedMeshId = fallback.GetComponent<MeshFilter>().sharedMesh.GetInstanceID();+ // These four actual references are created and registered by BuildSea/BuildGround/HexUnitMotion.+ UnityEngine.Object[] owned = { sea.GetComponent<MeshFilter>().sharedMesh,+ sea.GetComponent<MeshRenderer>().sharedMaterial, state.Terrain,+ fallback.GetComponent<MeshRenderer>().sharedMaterial };+ rec.owned = owned.Select((o, i) =>+ {+ Assert.That(o != null && !EditorUtility.IsPersistent(o), Is.True);+ if (o == null) throw new InvalidOperationException("known generated asset is missing");+ o.name = "DomainOwned-" + cfg.token + "-" + i;+ return new AssetRef { id = o.GetInstanceID(), name = o.name, type = o.GetType().FullName ?? o.GetType().Name };+ }).ToArray();+ var marker = new GameObject("DomainOrdinary-" + cfg.token);+ rec.markerId = marker.GetInstanceID();+ Assert.That(marker.hideFlags, Is.EqualTo(HideFlags.None));+ var created = HexMaterials.New(HexMaterials.Lit);+ created.name = "DomainImported-" + cfg.token;+ rec.createdControl = new AssetRef { id = created.GetInstanceID(), name = created.name, type = created.GetType().FullName ?? created.GetType().Name };+ File.WriteAllText(RecordPath, JsonUtility.ToJson(rec, true));+ AssetDatabase.CreateAsset(created, rec.materialPath);+ rec.createdControl.name = created.name;+ File.WriteAllText(RecordPath, JsonUtility.ToJson(rec, true));+ var imported = AssetDatabase.LoadAssetAtPath<Material>(rec.materialPath);+ Assert.That(imported != null && AssetDatabase.Contains(imported), Is.True);+ marker.AddComponent<MeshRenderer>().sharedMaterial = imported;+ rec.materialGuid = AssetDatabase.AssetPathToGUID(rec.materialPath, AssetPathToGUIDOptions.OnlyExistingAssets);+ Assert.That(rec.materialGuid, Is.Not.Empty);+ File.WriteAllText(RecordPath, JsonUtility.ToJson(rec, true));+ SessionState.SetString(Key(rec.token), DomainNonce);+ UnityEngine.Debug.Log("DOMAINPROBE requesting actual reload " + JsonUtility.ToJson(rec));+ EditorUtility.RequestScriptReload();+ yield return new UnityEngine.TestTools.WaitForDomainReload();+ }+ Assert.That(SessionState.GetString(PendingKey, ""), Is.EqualTo(evidence), "fixture checkpoint must survive the actual reload");+ var before = Before;+ Assert.That(SessionState.GetString(Key(before.token), ""), Is.EqualTo(before.nonce));+ Assert.That(DomainNonce, Is.Not.EqualTo(before.nonce), "a real managed domain reload must change the static nonce");+ UnityEngine.Debug.Log($"DOMAINPROBE actualReload=True oldNonce={before.nonce} newNonce={DomainNonce}");+ }++ [Test]+ public void GeneratedAssetsAreReleasedWhenTheReloadedPreviewIsDestroyed()+ {+ var rec = Before;+ Assert.That(DomainNonce, Is.Not.EqualTo(rec.nonce));+ var preview = Native(rec.previewId) as GameObject;+ var state = Native(rec.stateId) as HexBoardState;+ bool previewWasAlive = preview != null;+ bool boardNull = state == null || state.Board == null;+ var beforeAlive = rec.owned.Where(Alive).Select(a => a.name).ToArray();+ var marker = Native(rec.markerId) as GameObject;+ Assert.That(marker != null && marker.name == "DomainOrdinary-" + rec.token, Is.True,+ "ordinary scene positive control must survive the domain-only reload");+ var imported = AssetDatabase.LoadAssetAtPath<Material>(rec.materialPath);+ Assert.That(imported != null && AssetDatabase.Contains(imported), Is.True);+ Assert.That(AssetDatabase.AssetPathToGUID(rec.materialPath, AssetPathToGUIDOptions.OnlyExistingAssets), Is.EqualTo(rec.materialGuid));+ bool sharedBefore = Native(rec.sharedMeshId) != null;+ UnityEngine.Debug.Log($"DOMAINPROBE afterReload previewAlive={preview != null} stateBoardNull={boardNull} ownedAlive={string.Join(",", beforeAlive)} sharedBeforeDestroy={sharedBefore}");+ // Board=null or a preview already removed by reload is recorded, not called a bug: the documented UX reloads it.+ if (preview != null)+ {+ Assert.That(preview.name, Is.EqualTo("DomainPreview-" + rec.token));+ Object.DestroyImmediate(preview); // actual HexBoardAssets.OnDestroy/Teardown, never a simulated owned-list clear+ }+ var retained = rec.owned.Where(Alive).Select(a => a.name).ToArray();+ TestContext.WriteLine("DOMAINLIFETIME " + JsonUtility.ToJson(new Observation {+ previewAliveAfterReload = previewWasAlive, stateBoardNull = boardNull, retained = retained,+ ownedAliveBeforeDestroy = beforeAlive, sharedBeforeDestroy = sharedBefore }));+ File.WriteAllText(Path.Combine(Evidence, "lifetime-observation.json"), JsonUtility.ToJson(new Observation {+ previewAliveAfterReload = previewWasAlive, stateBoardNull = boardNull, retained = retained,+ ownedAliveBeforeDestroy = beforeAlive, sharedBeforeDestroy = sharedBefore }, true));+ UnityEngine.Debug.Log($"DOMAINPROBE afterDestroy retained={string.Join(",", retained)} ordinaryAlive={marker != null} importedAlive={imported != null}");+ Assert.That(marker != null, Is.True);+ Assert.That(imported != null && AssetDatabase.Contains(imported), Is.True);+ Assert.That(AssetDatabase.AssetPathToGUID(rec.materialPath, AssetPathToGUIDOptions.OnlyExistingAssets), Is.EqualTo(rec.materialGuid));+ if (sharedBefore) Assert.That(Native(rec.sharedMeshId) != null, Is.True, "a shared primitive alive after reload must survive preview destruction");+ Assert.That(retained, Is.Empty, "generated native assets must be released by reloaded preview teardown");+ }+ [Serializable] sealed class Observation+ {+ public bool previewAliveAfterReload, stateBoardNull, sharedBeforeDestroy;+ public string[] retained = Array.Empty<string>(), ownedAliveBeforeDestroy = Array.Empty<string>();+ }++ [TearDown]+ public void RemoveOnlyThisDiagnosticsOwnedObjectsAndAssets()+ {+ if (string.IsNullOrEmpty(evidence)) return;+ var ownedDirectory = Evidence;+ try+ {+ if (!File.Exists(RecordPath)) return;+ var rec = Before;+ var preview = Native(rec.previewId) as GameObject;+ if (preview != null && preview.name == "DomainPreview-" + rec.token) Object.DestroyImmediate(preview);+ var marker = Native(rec.markerId) as GameObject;+ if (marker != null && marker.name == "DomainOrdinary-" + rec.token) Object.DestroyImmediate(marker);+ // Explicit cleanup after recording the result: only the exact named nonpersistent objects this fixture created.+ foreach (var a in rec.owned)+ {+ var o = Native(a.id);+ if (o != null && Alive(a) && !EditorUtility.IsPersistent(o)) Object.DestroyImmediate(o);+ }+ AssetDatabase.DeleteAsset(rec.materialPath);+ var created = Native(rec.createdControl.id);+ if (Alive(rec.createdControl) && created != null && !EditorUtility.IsPersistent(created)) Object.DestroyImmediate(created);+ AssetDatabase.DeleteAsset(rec.jsonPath);+ SessionState.EraseString(Key(rec.token));+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ }+ finally+ {+ foreach (var file in new[] { "config.json", "before-reload.json", "lifetime-observation.json" })+ {+ var path = Path.Combine(ownedDirectory, file);+ if (File.Exists(path)) File.Delete(path);+ }+ // Preserve unknown files instead of recursively deleting a directory after a failed fixture.+ if (Directory.Exists(ownedDirectory))+ {+ Assert.That(Directory.GetFileSystemEntries(ownedDirectory), Is.Empty, "unexpected domain fixture evidence must be preserved");+ Directory.Delete(ownedDirectory);+ }+ if (SessionState.GetString(PendingKey, "") == evidence) SessionState.EraseString(PendingKey);+ evidence = "";+ }+ }+}diff --git a/unity/Assets/Editor/HexTiles/Tests/HexPainterTests.cs.meta b/unity/Assets/Editor/HexTiles/Tests/HexPainterTests.cs.metanew file mode 100644index 000000000..2f9cf2bef--- /dev/null+++ b/unity/Assets/Editor/HexTiles/Tests/HexPainterTests.cs.meta@@ -0,0 +1,2 @@+fileFormatVersion: 2+guid: 7ad10e9b1dd7942b0b072bc9b32a74f8\ No newline at end of filediff --git a/unity/Assets/Editor/HexTiles/Tests/HexPrototypeTests.cs b/unity/Assets/Editor/HexTiles/Tests/HexPrototypeTests.csindex 5a7b648d2..9e36b7949 100644--- a/unity/Assets/Editor/HexTiles/Tests/HexPrototypeTests.cs+++ b/unity/Assets/Editor/HexTiles/Tests/HexPrototypeTests.cs@@ -79,12 +79,15 @@ public class HexPrototypeTests{var path = AssetDatabase.GUIDToAssetPath(guid);var name = System.IO.Path.GetFileNameWithoutExtension(path);+ if (name.EndsWith(HexBoardOverrides.Suffix)) continue; // a board's hand edits, applied (and so checked) by LoadBoardvar board = HexBoardCapture.LoadBoard(name);foreach (var h in board.Hexes.Values){Assert.That(new[] { "flat", "hills", "mountain", "water" }, Does.Contain(h.terrain), $"{name} ({h.q},{h.r})");Assert.That(HexGround.Ids, Does.Contain(h.ground), $"{name} ({h.q},{h.r})");if (h.prototype != "") Assert.That(HexPrototypes.All.ContainsKey(h.prototype), $"{name} ({h.q},{h.r}): no prototype '{h.prototype}'");+ if (h.unit != "") Assert.That(HexUnitTypes.All.ContainsKey(h.unit), $"{name} ({h.q},{h.r}): no unit '{h.unit}'");+ if (h.region != "") Assert.That(board.Regions.ContainsKey(h.region), $"{name} ({h.q},{h.r}): no region '{h.region}'");}}}diff --git a/unity/Assets/Resources/HexTiles/Boards/israel.json b/unity/Assets/Resources/HexTiles/Boards/israel.jsonnew file mode 100644index 000000000..ebd98a324--- /dev/null+++ b/unity/Assets/Resources/HexTiles/Boards/israel.json@@ -0,0 +1,11613 @@+{+ "id": "israel",+ "title": "israel (generated by tools/hex_tiles/make_board.py from regions.yaml; lat [29.47367, 33.36], lon [34.19, 35.89616])",+ "hexes": [+ {+ "q": 11,+ "r": 0,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 12,+ "r": 0,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 13,+ "r": 0,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 14,+ "r": 0,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 15,+ "r": 0,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 16,+ "r": 0,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 17,+ "r": 0,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 18,+ "r": 0,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 10,+ "r": 1,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 1,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 1,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 1,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 1,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 15,+ "r": 1,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 16,+ "r": 1,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 17,+ "r": 1,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 18,+ "r": 1,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 9,+ "r": 2,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 10,+ "r": 2,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 2,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 2,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 2,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 2,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "al_khalisa",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 15,+ "r": 2,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 16,+ "r": 2,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 17,+ "r": 2,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 8,+ "r": 3,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 9,+ "r": 3,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "citrus_orchard",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 3,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 3,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 3,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 3,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 3,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_salihiyya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 15,+ "r": 3,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 16,+ "r": 3,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 17,+ "r": 3,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 7,+ "r": 4,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 8,+ "r": 4,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_bassa",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 9,+ "r": 4,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "kibbutz",+ "note": "hanita",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 4,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "fassuta",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 4,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 4,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "saliha",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 4,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 4,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 15,+ "r": 4,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 16,+ "r": 4,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 7,+ "r": 5,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 8,+ "r": 5,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_kabri",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 5,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "tarshiha",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 5,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "dayr_al_qassi",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 5,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "sasa",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 5,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "al_jauna",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 5,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 5,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 15,+ "r": 5,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 16,+ "r": 5,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 6,+ "r": 6,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 7,+ "r": 6,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "acre",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 8,+ "r": 6,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "yarka",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 6,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "majd_al_krum",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 6,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "rameh",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 6,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "moshava_village",+ "note": "safed",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 6,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "moshava_village",+ "note": "rosh_pinna",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 6,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 6,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 15,+ "r": 6,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 5,+ "r": 7,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 6,+ "r": 7,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 7,+ "r": 7,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_birwa",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 7,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "shaab",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 7,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "sakhnin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 7,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "maghar",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 7,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "arab_village",+ "note": "ghuwayr_abu_shusha",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 7,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 7,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 7,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 15,+ "r": 7,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 4,+ "r": 8,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 5,+ "r": 8,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "tel_aviv_city_mixed",+ "note": "haifa",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 6,+ "r": 8,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "kiryat_ata",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 7,+ "r": 8,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "shefa_amr",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 8,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "kafr_manda",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 8,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "turan",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 8,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "hittin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 8,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 8,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 8,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 8,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 3,+ "r": 9,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 4,+ "r": 9,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_tira_haifa",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 5,+ "r": 9,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "balad_al_sheikh",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 6,+ "r": 9,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 7,+ "r": 9,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "sepphoris",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 9,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "kafr_kanna",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 9,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "lubya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 9,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "moshava_village",+ "note": "tiberias",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 9,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 9,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 9,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 14,+ "r": 9,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 2,+ "r": 10,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 3,+ "r": 10,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "jaba",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 4,+ "r": 10,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "ijzim",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 5,+ "r": 10,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 6,+ "r": 10,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "kibbutz",+ "note": "nahalal",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 7,+ "r": 10,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "nazareth",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 10,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "daburiyya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 10,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 10,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "kibbutz",+ "note": "degania_alef",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 11,+ "r": 10,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 12,+ "r": 10,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 10,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 2,+ "r": 11,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 3,+ "r": 11,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "zikhron_yaakov",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 4,+ "r": 11,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "umm_az_zinat",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 5,+ "r": 11,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_mansi",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 6,+ "r": 11,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "afula",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 7,+ "r": 11,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 11,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 11,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 10,+ "r": 11,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 11,+ "r": 11,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 11,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 13,+ "r": 11,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 1,+ "r": 12,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 2,+ "r": 12,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "binyamina",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 3,+ "r": 12,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "sabbarin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 4,+ "r": 12,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "umm_al_fahm",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 5,+ "r": 12,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "silat_al_harithiya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 6,+ "r": 12,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "zirin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 7,+ "r": 12,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "kibbutz",+ "note": "ein_harod",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 12,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 9,+ "r": 12,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 10,+ "r": 12,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 11,+ "r": 12,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 12,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 0,+ "r": 13,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 1,+ "r": 13,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "hadera",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 2,+ "r": 13,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "pardes_hanna_karkur",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 3,+ "r": 13,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "arara",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 4,+ "r": 13,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "yabad",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 5,+ "r": 13,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "al_yamun",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 6,+ "r": 13,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "jenin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 7,+ "r": 13,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 13,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "arab_village",+ "note": "beit_shean",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 9,+ "r": 13,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 10,+ "r": 13,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 13,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 12,+ "r": 13,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": 0,+ "r": 14,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 1,+ "r": 14,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "wadi_al_hawarith",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 2,+ "r": 14,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "baqa_al_gharbiyye",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 3,+ "r": 14,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "ilar",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 4,+ "r": 14,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "arraba_2",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 5,+ "r": 14,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "qabatiya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 6,+ "r": 14,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 7,+ "r": 14,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "citrus_orchard",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 8,+ "r": 14,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 9,+ "r": 14,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 10,+ "r": 14,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "north"+ },+ {+ "q": 11,+ "r": 14,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "north"+ },+ {+ "q": -1,+ "r": 15,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 0,+ "r": 15,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "netanya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 1,+ "r": 15,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "qaqun",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 2,+ "r": 15,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "tulkarm",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 15,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "silat_adh_dhahr",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 15,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "jaba_2",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 15,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "tubas",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 15,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 7,+ "r": 15,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 8,+ "r": 15,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 9,+ "r": 15,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 10,+ "r": 15,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 11,+ "r": 15,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 16,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -1,+ "r": 16,+ "terrain": "flat",+ "ground": "beach",+ "prototype": "coastal_dunes",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 0,+ "r": 16,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "tira",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 1,+ "r": 16,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "taibe_2",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 16,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "anabta",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 16,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "burqa_nablus",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 16,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "asira_ash_shamaliya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 16,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "tammun",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 16,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 7,+ "r": 16,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 8,+ "r": 16,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 9,+ "r": 16,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 10,+ "r": 16,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 17,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -1,+ "r": 17,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "kfar_saba",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 0,+ "r": 17,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "qalqilya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 1,+ "r": 17,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "kafr_zibad",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 17,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "kafr_qaddum",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 17,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "nablus",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 17,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "beit_furik",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 17,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 17,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 7,+ "r": 17,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 8,+ "r": 17,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 9,+ "r": 17,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 10,+ "r": 17,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 18,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -2,+ "r": 18,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "herzliya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -1,+ "r": 18,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "citrus_orchard",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": 0,+ "r": 18,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "kafr_qasim",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 1,+ "r": 18,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "biddya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 18,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "jammain",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 18,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "beita",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 18,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "aqraba",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 18,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 18,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 7,+ "r": 18,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 8,+ "r": 18,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 9,+ "r": 18,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -4,+ "r": 19,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -3,+ "r": 19,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "tel_aviv_city",+ "note": "tel_aviv",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -2,+ "r": 19,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "petah_tikva",+ "unit": "palmach_squad",+ "facing": 40.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -1,+ "r": 19,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "majdal_yaba",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 0,+ "r": 19,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "aboud",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 1,+ "r": 19,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "salfit",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 19,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "sinjil",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 19,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "qusra",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 19,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 19,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 6,+ "r": 19,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 7,+ "r": 19,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 8,+ "r": 19,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 9,+ "r": 19,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -5,+ "r": 20,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -4,+ "r": 20,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "jaffa_old_city",+ "note": "jaffa",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -3,+ "r": 20,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "rishon_lezion",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -2,+ "r": 20,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "bayt_nabala",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 20,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "nilin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 0,+ "r": 20,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 1,+ "r": 20,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "birzeit",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 20,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "silwad",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 20,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 20,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 5,+ "r": 20,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 6,+ "r": 20,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 7,+ "r": 20,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 8,+ "r": 20,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -6,+ "r": 21,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -5,+ "r": 21,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "nabi_rubin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -4,+ "r": 21,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "ramla",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -3,+ "r": 21,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "lod",+ "unit": "sandwich_truck",+ "facing": 100.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 21,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "jimzu",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 21,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 0,+ "r": 21,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "beitunia",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 1,+ "r": 21,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "al_bireh",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 21,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 21,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 21,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 5,+ "r": 21,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "citrus_orchard",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 6,+ "r": 21,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 7,+ "r": 21,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 8,+ "r": 21,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -6,+ "r": 22,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -5,+ "r": 22,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "yibna",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -4,+ "r": 22,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "moshava_village",+ "note": "rehovot",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -3,+ "r": 22,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_qubab",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 22,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "imwas",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 22,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "qatanna",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": 0,+ "r": 22,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "ramallah",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": 1,+ "r": 22,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": 2,+ "r": 22,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 22,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "arab_village",+ "note": "jericho",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 4,+ "r": 22,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 5,+ "r": 22,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 22,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 7,+ "r": 22,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -7,+ "r": 23,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -6,+ "r": 23,+ "terrain": "flat",+ "ground": "beach",+ "prototype": "coastal_dunes",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -5,+ "r": 23,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_masmiyya_al_kabira",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -4,+ "r": 23,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 23,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 23,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "bayt_mahsir",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 23,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "ein_karem",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": 0,+ "r": 23,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "jerusalem_old_city",+ "note": "jerusalem",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": 1,+ "r": 23,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "willys_jeep",+ "facing": 270.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 23,+ "terrain": "flat",+ "ground": "beach",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 23,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 4,+ "r": 23,+ "terrain": "flat",+ "ground": "plains",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 5,+ "r": 23,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 23,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 7,+ "r": 23,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -8,+ "r": 24,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -7,+ "r": 24,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "isdud",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -6,+ "r": 24,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "yasur",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -5,+ "r": 24,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "tell_es_safi",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -4,+ "r": 24,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "ajjur",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 24,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "bayt_nattif",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 24,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "battir",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": -1,+ "r": 24,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "bethlehem",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": 0,+ "r": 24,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jerusalem"+ },+ {+ "q": 1,+ "r": 24,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 24,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 3,+ "r": 24,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 4,+ "r": 24,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 24,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 24,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -9,+ "r": 25,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -8,+ "r": 25,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_majdal",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -7,+ "r": 25,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "karatiyya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -6,+ "r": 25,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "jusayr",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -5,+ "r": 25,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -4,+ "r": 25,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 25,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "surif",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 25,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "beit_fajjar",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 25,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 0,+ "r": 25,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 1,+ "r": 25,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 2,+ "r": 25,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 3,+ "r": 25,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 4,+ "r": 25,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 25,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 6,+ "r": 25,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -11,+ "r": 26,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -10,+ "r": 26,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -9,+ "r": 26,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "kibbutz",+ "note": "yad_mordechai",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -8,+ "r": 26,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "burayr",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -7,+ "r": 26,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "al_faluja",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -6,+ "r": 26,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "al_qubayba_hebron",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -5,+ "r": 26,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "bayt_jibrin",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -4,+ "r": 26,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "tarqumiyah",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 26,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "halhul",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 26,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 26,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 0,+ "r": 26,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 1,+ "r": 26,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 2,+ "r": 26,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 3,+ "r": 26,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 26,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 26,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -12,+ "r": 27,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -11,+ "r": 27,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "jaffa_old_city",+ "note": "gaza",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -10,+ "r": 27,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "jabalia",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -9,+ "r": 27,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "citrus_orchard",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -8,+ "r": 27,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -7,+ "r": 27,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -6,+ "r": 27,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "al_dawayima",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -5,+ "r": 27,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "idna",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -4,+ "r": 27,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "hebron",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 27,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "bani_naim",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 27,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 27,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 0,+ "r": 27,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 1,+ "r": 27,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 2,+ "r": 27,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 3,+ "r": 27,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 27,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 5,+ "r": 27,+ "terrain": "hills",+ "ground": "mountain",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -13,+ "r": 28,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -12,+ "r": 28,+ "terrain": "flat",+ "ground": "beach",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -11,+ "r": 28,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "citrus_orchard",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -10,+ "r": 28,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -9,+ "r": 28,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -8,+ "r": 28,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -7,+ "r": 28,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -6,+ "r": 28,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -5,+ "r": 28,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -4,+ "r": 28,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "yatta",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 28,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 28,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 28,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 0,+ "r": 28,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 1,+ "r": 28,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 2,+ "r": 28,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 28,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 28,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -14,+ "r": 29,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "coastal_plain"+ },+ {+ "q": -13,+ "r": 29,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "bani_suheila",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -12,+ "r": 29,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -11,+ "r": 29,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -10,+ "r": 29,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -9,+ "r": 29,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -8,+ "r": 29,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -7,+ "r": 29,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -6,+ "r": 29,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "arab_village",+ "note": "al_dahiriya",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -5,+ "r": 29,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "arab_village",+ "note": "as_samu",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -4,+ "r": 29,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -3,+ "r": 29,+ "terrain": "hills",+ "ground": "hills",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -2,+ "r": 29,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": -1,+ "r": 29,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 0,+ "r": 29,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 1,+ "r": 29,+ "terrain": "mountain",+ "ground": "hills",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 2,+ "r": 29,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "pine_forest",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 3,+ "r": 29,+ "terrain": "mountain",+ "ground": "mountain",+ "prototype": "judean_highlands",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "central_hills"+ },+ {+ "q": 4,+ "r": 29,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "central_hills"+ },+ {+ "q": -15,+ "r": 30,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "coastal_plain"+ },+ {+ "q": -14,+ "r": 30,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "khan_yunis",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -13,+ "r": 30,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "arab_village",+ "note": "abasan_al_kabira",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -12,+ "r": 30,+ "terrain": "flat",+ "ground": "grass",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -11,+ "r": 30,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 30,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 30,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 30,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 30,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 30,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 30,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 30,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 30,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 30,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -1,+ "r": 30,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 0,+ "r": 30,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 1,+ "r": 30,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 2,+ "r": 30,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 3,+ "r": 30,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 31,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "coastal_plain"+ },+ {+ "q": -14,+ "r": 31,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "wheat_fields",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -13,+ "r": 31,+ "terrain": "hills",+ "ground": "grass",+ "prototype": "olive_terraces",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -12,+ "r": 31,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "citrus_orchard",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "coastal_plain"+ },+ {+ "q": -11,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "arab_village",+ "note": "beersheba",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 31,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 31,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 31,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 31,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": -1,+ "r": 31,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 0,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 1,+ "r": 31,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 2,+ "r": 31,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 3,+ "r": 31,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 32,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 32,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 32,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "grazing_land",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 32,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 32,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": -2,+ "r": 32,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": -1,+ "r": 32,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": 0,+ "r": 32,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 1,+ "r": 32,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 2,+ "r": 32,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 33,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 33,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 33,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 33,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 33,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": -2,+ "r": 33,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "jordan_valley"+ },+ {+ "q": -1,+ "r": 33,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 0,+ "r": 33,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 1,+ "r": 33,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 2,+ "r": 33,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "kibbutz",+ "note": "revivim",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 34,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 34,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -4,+ "r": 34,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -3,+ "r": 34,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -2,+ "r": 34,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -1,+ "r": 34,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 0,+ "r": 34,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 1,+ "r": 34,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 35,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 35,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 35,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -5,+ "r": 35,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -4,+ "r": 35,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -3,+ "r": 35,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 35,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -1,+ "r": 35,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 0,+ "r": 35,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 1,+ "r": 35,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 36,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 36,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 36,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 36,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 36,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -5,+ "r": 36,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -4,+ "r": 36,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -3,+ "r": 36,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 36,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -1,+ "r": 36,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 0,+ "r": 36,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 37,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 37,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 37,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 37,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -6,+ "r": 37,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -5,+ "r": 37,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -4,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 37,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 37,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -1,+ "r": 37,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": 0,+ "r": 37,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 38,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 38,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 38,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 38,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -7,+ "r": 38,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -6,+ "r": 38,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -5,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 38,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 38,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 38,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -1,+ "r": 38,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 39,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 39,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 39,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 39,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 39,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 39,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -7,+ "r": 39,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -6,+ "r": 39,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -5,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 39,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -1,+ "r": 39,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 40,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 40,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 40,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 40,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 40,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 40,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -8,+ "r": 40,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -7,+ "r": 40,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -6,+ "r": 40,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 40,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 40,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 41,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 41,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 41,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 41,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 41,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 41,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -9,+ "r": 41,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -8,+ "r": 41,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -7,+ "r": 41,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 41,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -2,+ "r": 41,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 42,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 42,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 42,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 42,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 42,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 42,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -9,+ "r": 42,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -8,+ "r": 42,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 42,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 42,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 43,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 43,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 43,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 43,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 43,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -10,+ "r": 43,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -9,+ "r": 43,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -8,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 43,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -3,+ "r": 43,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -11,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -10,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -9,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 44,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 44,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -11,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -10,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 45,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -4,+ "r": 45,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -12,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -11,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -10,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 46,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 46,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -13,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -12,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -11,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 47,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -5,+ "r": 47,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -13,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -12,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 48,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 48,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 49,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 49,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 49,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -14,+ "r": 49,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -13,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -12,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 49,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -6,+ "r": 49,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 50,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 50,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -15,+ "r": 50,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -14,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -13,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 50,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 50,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 51,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 51,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -15,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -14,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 51,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -7,+ "r": 51,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -26,+ "r": 52,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 52,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -16,+ "r": 52,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -15,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -14,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 52,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 52,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -26,+ "r": 53,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 53,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -17,+ "r": 53,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -16,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -15,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 53,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -8,+ "r": 53,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -27,+ "r": 54,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -26,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 54,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -18,+ "r": 54,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -17,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -16,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 54,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 54,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -27,+ "r": 55,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -26,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -19,+ "r": 55,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -18,+ "r": 55,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -17,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 55,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -9,+ "r": 55,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -28,+ "r": 56,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -27,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -26,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 56,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -19,+ "r": 56,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -18,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "arava"+ },+ {+ "q": -17,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "mountain_peaks",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 56,+ "terrain": "mountain",+ "ground": "desert",+ "prototype": "desert_edge",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": false,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 56,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -28,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -27,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -26,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -25,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -24,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -23,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -22,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -21,+ "r": 57,+ "terrain": "flat",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -20,+ "r": 57,+ "terrain": "water",+ "ground": "seabed",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "arava"+ },+ {+ "q": -19,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "arava"+ },+ {+ "q": -18,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -17,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -16,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -15,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -14,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -13,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -12,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -11,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ },+ {+ "q": -10,+ "r": 57,+ "terrain": "hills",+ "ground": "desert",+ "prototype": "",+ "note": "",+ "unit": "",+ "facing": 0.0,+ "env": true,+ "region": "negev"+ }+ ],+ "roads": [+ {+ "note": "jaffa_jerusalem_road",+ "hexes": [+ -3,+ 19,+ -3,+ 20,+ -3,+ 21,+ -3,+ 22,+ -3,+ 23,+ -2,+ 22,+ -2,+ 23,+ -1,+ 22,+ -1,+ 23,+ 0,+ 23+ ]+ },+ {+ "note": "tel_aviv_haifa_road",+ "hexes": [+ -3,+ 19,+ -2,+ 18,+ -2,+ 19,+ -1,+ 18,+ -1,+ 17,+ 0,+ 16,+ 0,+ 15,+ 1,+ 14,+ 1,+ 13,+ 1,+ 14,+ 2,+ 13,+ 2,+ 12,+ 3,+ 11,+ 3,+ 10,+ 4,+ 9+ ]+ },+ {+ "note": "coastal_road_south",+ "hexes": [+ -3,+ 19,+ -3,+ 20,+ -4,+ 21,+ -5,+ 22,+ -6,+ 23,+ -7,+ 24,+ -8,+ 25,+ -9,+ 26,+ -10,+ 27,+ -11,+ 27,+ -11,+ 28,+ -12,+ 28,+ -13,+ 29,+ -14,+ 30+ ]+ },+ {+ "note": "haifa_acre_naqura_road",+ "hexes": [+ 5,+ 8,+ 6,+ 8+ ]+ },+ {+ "note": "jerusalem_hebron_beersheba_road",+ "hexes": [+ 0,+ 23,+ -1,+ 24,+ -2,+ 25,+ -3,+ 26,+ -4,+ 27,+ -5,+ 28,+ -6,+ 29,+ -7,+ 30,+ -8,+ 31,+ -8,+ 30,+ -8,+ 31,+ -9,+ 31+ ]+ },+ {+ "note": "jerusalem_nablus_nazareth_road",+ "hexes": [+ 0,+ 23,+ 0,+ 22,+ 1,+ 21,+ 1,+ 20,+ 2,+ 20,+ 2,+ 19,+ 3,+ 18,+ 3,+ 17,+ 3,+ 16,+ 3,+ 15,+ 4,+ 15,+ 3,+ 15,+ 4,+ 14,+ 5,+ 13,+ 5,+ 14,+ 6,+ 13,+ 6,+ 12,+ 7,+ 11,+ 6,+ 11,+ 7,+ 10+ ]+ },+ {+ "note": "tel_aviv_tulkarm_nablus_road",+ "hexes": [+ -3,+ 19,+ -2,+ 18,+ -2,+ 19,+ -1,+ 18,+ 0,+ 17,+ 1,+ 16,+ 2,+ 15,+ 3,+ 15,+ 2,+ 16,+ 3,+ 16,+ 3,+ 17+ ]+ },+ {+ "note": "haifa_nazareth_tiberias_road",+ "hexes": [+ 5,+ 8,+ 5,+ 9,+ 6,+ 9,+ 6,+ 10,+ 7,+ 10,+ 8,+ 9,+ 9,+ 8,+ 9,+ 9,+ 10,+ 8+ ]+ },+ {+ "note": "jerusalem_jericho_road",+ "hexes": [+ 0,+ 23,+ 1,+ 23,+ 2,+ 22,+ 2,+ 23,+ 3,+ 22+ ]+ },+ {+ "note": "tiberias_metula_road",+ "hexes": [+ 10,+ 8,+ 11,+ 7,+ 12,+ 6,+ 12,+ 5,+ 13,+ 5,+ 13,+ 4,+ 14,+ 3,+ 14,+ 2,+ 15,+ 1+ ]+ },+ {+ "note": "gaza_beersheba_road",+ "hexes": [+ -11,+ 27,+ -10,+ 27,+ -11,+ 28,+ -10,+ 27,+ -10,+ 28,+ -10,+ 29,+ -10,+ 30,+ -9,+ 30,+ -10,+ 31,+ -9,+ 31+ ]+ },+ {+ "note": "beersheba_auja_road",+ "hexes": [+ -9,+ 31,+ -9,+ 32,+ -10,+ 33,+ -10,+ 34,+ -11,+ 35,+ -11,+ 34,+ -11,+ 35,+ -12,+ 35,+ -13,+ 36,+ -13,+ 35,+ -14,+ 36,+ -15,+ 36,+ -16,+ 37+ ]+ }+ ],+ "rivers": [+ {+ "note": "The Yarkon",+ "corners": [+ -4,+ 19,+ 0,+ -3,+ 19,+ 5,+ -3,+ 19,+ 0,+ -3,+ 19,+ 1,+ -2,+ 19,+ 0,+ -2,+ 19,+ 1,+ -1,+ 19,+ 0,+ -1,+ 19,+ 1,+ 0,+ 19,+ 0+ ]+ }+ ],+ "regions": [+ {+ "id": "jerusalem",+ "title": "Jerusalem and its hills",+ "density": 1.0,+ "flat": [+ {+ "model": "sandbox:olive_lite",+ "shape": "tree",+ "weight": 0.6+ },+ {+ "model": "sandbox:cypress_lite",+ "shape": "pine",+ "weight": 0.4+ }+ ],+ "hills": [+ {+ "model": "sandbox:olive_lite",+ "shape": "tree",+ "weight": 0.4+ },+ {+ "model": "sandbox:aleppo_pine_lite",+ "shape": "pine",+ "weight": 0.35+ },+ {+ "model": "sandbox:cypress_lite",+ "shape": "pine",+ "weight": 0.25+ }+ ],+ "rock": "sandbox:limestone*",+ "rockChance": 0.7,+ "rocksOnFlat": false+ },+ {+ "id": "jordan_valley",+ "title": "Jordan valley and the Dead Sea",+ "density": 0.6,+ "flat": [+ {+ "model": "sandbox:date_palm",+ "shape": "palm",+ "weight": 0.55+ },+ {+ "model": "sandbox:acacia_lite",+ "shape": "tree",+ "weight": 0.45+ }+ ],+ "hills": [+ {+ "model": "sandbox:acacia_lite",+ "shape": "tree",+ "weight": 1.0+ }+ ],+ "rock": "sandbox:desert_rock*",+ "rockChance": 0.4,+ "rocksOnFlat": true+ },+ {+ "id": "arava",+ "title": "Arava",+ "density": 0.25,+ "flat": [+ {+ "model": "sandbox:acacia_lite",+ "shape": "tree",+ "weight": 0.75+ },+ {+ "model": "sandbox:date_palm",+ "shape": "palm",+ "weight": 0.25+ }+ ],+ "hills": [+ {+ "model": "sandbox:acacia_lite",+ "shape": "tree",+ "weight": 1.0+ }+ ],+ "rock": "sandbox:desert_rock*",+ "rockChance": 0.8,+ "rocksOnFlat": true+ },+ {+ "id": "coastal_plain",+ "title": "Coastal plain",+ "density": 0.9,+ "flat": [+ {+ "model": "sandbox:citrus_lite",+ "shape": "tree",+ "weight": 0.55+ },+ {+ "model": "sandbox:date_palm",+ "shape": "palm",+ "weight": 0.45+ }+ ],+ "hills": [+ {+ "model": "sandbox:olive_lite",+ "shape": "tree",+ "weight": 0.5+ },+ {+ "model": "sandbox:carob_lite",+ "shape": "tree",+ "weight": 0.5+ }+ ],+ "rock": "sandbox:limestone*",+ "rockChance": 0.3,+ "rocksOnFlat": false+ },+ {+ "id": "negev",+ "title": "Negev and the southern deserts",+ "density": 0.35,+ "flat": [+ {+ "model": "sandbox:acacia_lite",+ "shape": "tree",+ "weight": 1.0+ }+ ],+ "hills": [+ {+ "model": "sandbox:acacia_lite",+ "shape": "tree",+ "weight": 1.0+ }+ ],+ "rock": "sandbox:desert_rock*",+ "rockChance": 0.7,+ "rocksOnFlat": true+ },+ {+ "id": "north",+ "title": "Galilee and the north",+ "density": 1.25,+ "flat": [+ {+ "model": "sandbox:tabor_oak_lite",+ "shape": "tree",+ "weight": 0.6+ },+ {+ "model": "sandbox:carob_lite",+ "shape": "tree",+ "weight": 0.4+ }+ ],+ "hills": [+ {+ "model": "sandbox:aleppo_pine_lite",+ "shape": "pine",+ "weight": 0.55+ },+ {+ "model": "sandbox:tabor_oak_lite",+ "shape": "tree",+ "weight": 0.45+ }+ ],+ "rock": "sandbox:limestone*",+ "rockChance": 0.6,+ "rocksOnFlat": false+ },+ {+ "id": "central_hills",+ "title": "Central hills and the Shephelah",+ "density": 1.0,+ "flat": [+ {+ "model": "sandbox:olive_lite",+ "shape": "tree",+ "weight": 0.6+ },+ {+ "model": "sandbox:carob_lite",+ "shape": "tree",+ "weight": 0.4+ }+ ],+ "hills": [+ {+ "model": "sandbox:tabor_oak_lite",+ "shape": "tree",+ "weight": 0.55+ },+ {+ "model": "sandbox:aleppo_pine_lite",+ "shape": "pine",+ "weight": 0.45+ }+ ],+ "rock": "sandbox:limestone*",+ "rockChance": 0.6,+ "rocksOnFlat": false+ }+ ]+}\ No newline at end of filediff --git a/unity/Assets/Resources/HexTiles/Boards/israel.json.meta b/unity/Assets/Resources/HexTiles/Boards/israel.json.metanew file mode 100644index 000000000..b7bf47097--- /dev/null+++ b/unity/Assets/Resources/HexTiles/Boards/israel.json.meta@@ -0,0 +1,7 @@+fileFormatVersion: 2+guid: 3d250859fd17f4aab90d2884a18fa5bc+TextScriptImporter:+ externalObjects: {}+ userData:+ assetBundleName:+ assetBundleVariant:diff --git a/unity/Assets/Scripts/Map/HexTiles/Core/HexBoard.cs b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoard.csindex 83a6f1ac4..b2e37fb6f 100644--- a/unity/Assets/Scripts/Map/HexTiles/Core/HexBoard.cs+++ b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoard.cs@@ -17,6 +17,36 @@ namespace Statecraft.HexTilespublic string unit = ""; public float facing;/// <summary>Environment, not play: dressed as continuous landscape (no tile, no hex lines) round the playable hexes.</summary>public bool env;+ /// <summary>The landscape region the generator put the hex in (a BoardRegion id; tools/hex_tiles/regions.yaml).+ /// Its environment hexes take that region's trees and rocks; empty takes the built-in mix.</summary>+ public string region = "";+ }++ /// <summary>One kind of tree (or rock) a region plants on its environment hexes: a model id, the stand-in shape drawn+ /// while the model is missing (tree, pine, palm, rock, box), and its share of the mix.</summary>+ [Serializable] public sealed class BoardSpecies+ {+ public string model = ""; public string shape = "tree"; public float weight = 1f;+ public StandIn StandIn => shape switch { "pine" => StandIn.Pine, "palm" => StandIn.Palm, "rock" => StandIn.Rock, "box" => StandIn.Box, _ => StandIn.Tree };+ }++ /// <summary>A landscape region's environment dress (written by tools/hex_tiles/make_board.py from regions.yaml): the+ /// species on flat and on hills ground, a density multiplier, and the rock outcrop model, how often it shows (two+ /// tries a hex) and whether it also shows on the flat.</summary>+ [Serializable] public sealed class BoardRegion+ {+ public string id = ""; public string title = ""; public float density = 1f;+ public BoardSpecies[] flat = Array.Empty<BoardSpecies>(); public BoardSpecies[] hills = Array.Empty<BoardSpecies>();+ public string rock = "sandbox:limestone*"; public float rockChance = 0.6f; public bool rocksOnFlat;++ /// <summary>The mix every hex without a region gets: olive and carob on the flat, Tabor oak and Aleppo pine on+ /// hills, limestone outcrops on hills.</summary>+ public static readonly BoardRegion BuiltIn = new BoardRegion+ {+ id = "", title = "built-in",+ flat = new[] { new BoardSpecies { model = "sandbox:olive_lite", weight = 0.6f }, new BoardSpecies { model = "sandbox:carob_lite", weight = 0.4f } },+ hills = new[] { new BoardSpecies { model = "sandbox:tabor_oak_lite", weight = 0.55f }, new BoardSpecies { model = "sandbox:aleppo_pine_lite", shape = "pine", weight = 0.45f } },+ };}/// <summary>A board file (Boards/<id>.json): a fixed, hand-edited layout, so captures compare like for like.</summary>@@ -31,13 +61,23 @@ namespace Statecraft.HexTiles{public string id = ""; public string title = ""; public BoardHex[] hexes = Array.Empty<BoardHex>();public BoardRoad[] roads = Array.Empty<BoardRoad>(); public BoardRiver[] rivers = Array.Empty<BoardRiver>();+ /// <summary>The landscape regions the hexes name (environment dress); empty on boards made without regions.</summary>+ public BoardRegion[] regions = Array.Empty<BoardRegion>();}public sealed class HexBoard{public readonly HexBoardFile File;public readonly Dictionary<(int q, int r), BoardHex> Hexes;- public HexBoard(HexBoardFile file) { File = file; Hexes = file.hexes.ToDictionary(h => (h.q, h.r)); }+ public readonly Dictionary<string, BoardRegion> Regions;+ public HexBoard(HexBoardFile file)+ {+ File = file; Hexes = file.hexes.ToDictionary(h => (h.q, h.r));+ Regions = (file.regions ?? Array.Empty<BoardRegion>()).ToDictionary(g => g.id, StringComparer.Ordinal);+ }++ /// <summary>The region dressing hex <paramref name="h"/>'s environment: its own, else the built-in mix.</summary>+ public BoardRegion RegionOf(BoardHex h) => h.region != null && Regions.TryGetValue(h.region, out var g) ? g : BoardRegion.BuiltIn;/// <summary>Each river as world points along hex corners.</summary>public List<Vector3[]> RiverLines(float sizeM = HexScale.HexM) => (File.rivers ?? Array.Empty<BoardRiver>()).Select(rv =>@@ -49,9 +89,16 @@ namespace Statecraft.HexTilespublic static HexBoard FromJson(string json) => new HexBoard(JsonUtility.FromJson<HexBoardFile>(json));public const string BoardsFolder = "HexTiles/Boards";- /// <summary>A board shipped in Resources/HexTiles/Boards/<id>.json (runtime and editor alike).</summary>- public static HexBoard Load(string id) =>- FromJson((Resources.Load<TextAsset>(BoardsFolder + "/" + id) ?? throw new System.IO.FileNotFoundException($"no board Resources/{BoardsFolder}/{id}.json")).text);+ /// <summary>A board shipped in Resources/HexTiles/Boards/<id>.json (runtime and editor alike), with the hand edits+ /// of its sibling <id>.overrides.json applied last (HexBoardOverrides), so the Hex Painter's edits show before+ /// the board is regenerated.</summary>+ public static HexBoard Load(string id)+ {+ var board = FromJson((Resources.Load<TextAsset>(BoardsFolder + "/" + id) ?? throw new System.IO.FileNotFoundException($"no board Resources/{BoardsFolder}/{id}.json")).text);+ var overrides = Resources.Load<TextAsset>(BoardsFolder + "/" + id + HexBoardOverrides.Suffix);+ if (overrides != null) HexBoardOverrides.FromJson(overrides.text).Apply(board);+ return board;+ }/// <summary>Ground textures from Resources/HexTiles/Ground/<texture>_diff_2k and _nor_gl_2k (local while the/// textures await their asset batch); missing ones paint the layer's flat colour.</summary>diff --git a/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardBuilder.cs b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardBuilder.csindex d7b65aec1..f298b0070 100644--- a/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardBuilder.cs+++ b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardBuilder.cs@@ -27,8 +27,19 @@ namespace Statecraft.HexTilespublic const string RootName = "HexBoard", MountainPrototype = "mountain_peaks";/// <summary>How the board sits in its scene: alone (its own sea, ground everywhere), or on the real map (no sea of- /// its own, terrain holes outside its land hexes so the real map shows around and under the sea).</summary>- public sealed class Options { public bool OwnSea = true; public bool HolesOutsideLand; public Transform? Parent; public Vector3 Origin; }+ /// its own, terrain holes outside its land hexes so the real map shows around and under the sea). PerHex (the Hex+ /// Painter's mode) keeps each tile's pieces under their own "hex q,r" object and remembers the board, its paints+ /// and its terrain (HexBoardState), so RebuildHex can redo one hex; the game and the captures leave it off and+ /// get one combined renderer per material.</summary>+ public sealed class Options { public bool OwnSea = true; public bool HolesOutsideLand; public Transform? Parent; public Vector3 Origin; public bool PerHex; }++ public const string PiecesName = "HexBoardPieces", UnitsName = "HexBoardUnits";+ public static string HexName(int q, int r) => $"hex {q},{r}";+ public static string EnvName(int q, int r) => $"env {q},{r}";+ public static string UnitName(int q, int r) => $"unit {q},{r}";++ /// <summary>One tile as built: its pieces, its ground paints, and its report.</summary>+ sealed class Tile { public List<HexPlacement> Placements = null!; public List<HexPaint> Paints = null!; public HexTileReport Report = null!; }public static (GameObject root, List<HexTileReport> reports) Build(HexBoard board, Func<string, (Texture2D? albedo, Texture2D? normal)>? textures, int seed = 1948, string? only = null, Options? options = null){@@ -43,52 +54,127 @@ namespace Statecraft.HexTilesvar reports = new List<HexTileReport>();var placements = new List<HexPlacement>();var paints = new List<(HexPaint paint, int q, int r)>();+ var tiles = new List<(BoardHex hex, Tile tile)>();foreach (var h in board.Hexes.Values.OrderBy(h => h.q).ThenBy(h => h.r)){- string id = h.prototype != "" ? h.prototype : HexBoard.TerrainOf(h) == HexTerrain.Mountain ? MountainPrototype : "";- if (id == "" || (only != null && id != only && id != MountainPrototype)) continue;- var proto = HexPrototypes.Create(id);- var ctx = new HexTileContext(h.q, h.r, surface, seed);- proto.Build(ctx);- placements.AddRange(ctx.Placements);- paints.AddRange(ctx.Paints.Select(p => (p, h.q, h.r)));- reports.Add(new HexTileReport- {- Prototype = id, Title = proto.Title, Q = h.q, R = h.r, Pieces = ctx.Placements.Count, Budget = proto.TriangleBudget,- StandIns = ctx.Placements.Count(p => p.StandIn == StandIn.Flat || HexModels.Prefab(HexModels.Resolve(p.Model, p.Position)) == null),- Triangles = ctx.Placements.Sum(p => p.StandIn == StandIn.Flat ? 12 : HexModels.Triangles(p.Model, p.StandIn, p.Position)),- // Which models drew and which fell back to stand-ins ("~" marks a missing model).- Models = string.Join(", ", ctx.Placements.GroupBy(p => p.StandIn == StandIn.Flat ? "flat" : (HexModels.Prefab(HexModels.Resolve(p.Model, p.Position)) == null ? "~" : "") + p.Model)- .OrderBy(g => g.Key).Select(g => $"{g.Key} x{g.Count()}")),- });+ var tile = BuildTile(h, surface, seed, only);+ if (tile == null) continue;+ placements.AddRange(tile.Placements);+ paints.AddRange(tile.Paints.Select(p => (p, h.q, h.r)));+ reports.Add(tile.Report);+ tiles.Add((h, tile));}// The environment ring: continuous landscape round the playable hexes (no tiles, no hex lines).- placements.AddRange(HexEnvironment.Dress(board, surface, seed));+ var environment = HexEnvironment.Dress(board, surface, seed).ToList();+ placements.AddRange(environment);// Ground second: the tiles' paints (fields, sand, tracks) and the board's roads go into the terrain's splat.- BuildTerrain(root.transform, board, surface, textures, assets, paints, options.HolesOutsideLand);+ var (terrain, rect) = BuildTerrain(root.transform, board, surface, textures, assets, paints, options.HolesOutsideLand);if (options.OwnSea) BuildSea(root.transform, board, assets);- HexBoardRenderer.Emit(root.transform, placements, assets);+ if (!options.PerHex) HexBoardRenderer.Emit(root.transform, placements, assets);+ else+ {+ var pieces = new GameObject(PiecesName).transform; pieces.SetParent(root.transform, false);+ foreach (var (h, tile) in tiles) HexBoardRenderer.Emit(pieces, tile.Placements, assets, HexName(h.q, h.r));+ foreach (var g in environment.GroupBy(p => (p.Q, p.R)).OrderBy(g => g.Key.Q).ThenBy(g => g.Key.R))+ HexBoardRenderer.Emit(pieces, g, assets, EnvName(g.Key.Q, g.Key.R));+ var state = root.AddComponent<HexBoardState>();+ state.Board = board; state.Surface = surface; state.Seed = seed; state.Terrain = terrain; state.Rect = rect;+ foreach (var (h, tile) in tiles) { state.Paints[(h.q, h.r)] = tile.Paints; state.Reports[(h.q, h.r)] = tile.Report; }+ }// Units: their own layer above the tiles, standing at idle on their hex's centre.- var units = new GameObject("HexBoardUnits").transform; units.SetParent(root.transform, false);+ var units = new GameObject(UnitsName).transform; units.SetParent(root.transform, false);foreach (var h in board.Hexes.Values.Where(h => h.unit != "").OrderBy(h => h.q).ThenBy(h => h.r)){if (only != null && h.prototype != only) continue;- var type = HexUnitTypes.Create(h.unit);- var unit = type.Create();- var motion = new HexUnitMotion(unit, new[] { (h.q, h.r) }, surface, units, HexScale.HexM, h.facing);- motion.Pose(0f, false);- reports.Add(new HexTileReport- {- Prototype = "unit:" + h.unit, Title = type.Title, Q = h.q, R = h.r, Pieces = unit.Members.Count, Budget = int.MaxValue,- StandIns = unit.Members.Count(m => HexModels.Prefab(m.Model) == null),- Triangles = unit.Members.Sum(m => HexModels.Triangles(m.Model, m.StandIn, Vector3.zero)),- Models = string.Join(", ", unit.Members.GroupBy(m => (HexModels.Prefab(m.Model) == null ? "~" : "") + m.Model).Select(g => $"{g.Key} x{g.Count()}")),- });+ reports.Add(BuildUnit(h, surface, options.PerHex ? Holder(units, UnitName(h.q, h.r)) : units));}HexBoardEdges.Build(root.transform, board, surface, assets);return (root, reports);}+ /// <summary>Rebuilds one hex of a board built with Options.PerHex after its prototype, ground, unit, facing or+ /// region changed in <c>HexBoardState.Board</c>: its pieces, its environment trees, its unit, and the ground splat+ /// over it and the blend round it.+ /// Returns the tile's report (null when the hex now has no tile).</summary>+ public static HexTileReport? RebuildHex(GameObject root, int q, int r)+ {+ var state = root.GetComponent<HexBoardState>() ?? throw new InvalidOperationException("the board was not built with Options.PerHex");+ var assets = root.GetComponent<HexBoardAssets>();+ var h = state.Board.Hexes[(q, r)];+ var pieces = root.transform.Find(PiecesName);+ var old = pieces.Find(HexName(q, r));+ if (old != null) Release(old.gameObject, assets);+ state.Paints.Remove((q, r)); state.Reports.Remove((q, r));+ HexTileReport? report = null;+ var tile = BuildTile(h, state.Surface, state.Seed, null);+ if (tile != null)+ {+ HexBoardRenderer.Emit(pieces, tile.Placements, assets, HexName(q, r));+ state.Paints[(q, r)] = tile.Paints;+ report = state.Reports[(q, r)] = tile.Report;+ }+ var oldEnv = pieces.Find(EnvName(q, r));+ if (oldEnv != null) Release(oldEnv.gameObject, assets);+ var env = HexEnvironment.DressHex(state.Board, h, state.Surface, state.Seed).ToList();+ if (env.Count > 0) HexBoardRenderer.Emit(pieces, env, assets, EnvName(q, r));+ var units = root.transform.Find(UnitsName);+ var oldUnit = units.Find(UnitName(q, r));+ if (oldUnit != null) Release(oldUnit.gameObject, assets);+ if (h.unit != "") BuildUnit(h, state.Surface, Holder(units, UnitName(q, r)));+ Repaint(state, HexGeometry.Centre(q, r, HexScale.HexM));+ return report;+ }++ static Transform Holder(Transform parent, string name) { var t = new GameObject(name).transform; t.SetParent(parent, false); return t; }++ /// <summary>Destroys a hex's pieces and the meshes and materials the board made for them.</summary>+ static void Release(GameObject go, HexBoardAssets assets)+ {+ foreach (var f in go.GetComponentsInChildren<MeshFilter>(true)) assets.Release(f.sharedMesh);+ foreach (var r in go.GetComponentsInChildren<Renderer>(true)) foreach (var m in r.sharedMaterials) assets.Release(m);+ Object.DestroyImmediate(go);+ }++ /// <summary>A hex's tile: its prototype (a mountain with none gets mountain_peaks) built on the board's ground, or+ /// null for a hex with no tile (or another tile when only one is asked for).</summary>+ static Tile? BuildTile(BoardHex h, HexBoardSurface surface, int seed, string? only)+ {+ string id = h.prototype != "" ? h.prototype : HexBoard.TerrainOf(h) == HexTerrain.Mountain ? MountainPrototype : "";+ if (id == "" || (only != null && id != only && id != MountainPrototype)) return null;+ var proto = HexPrototypes.Create(id);+ var ctx = new HexTileContext(h.q, h.r, surface, seed);+ proto.Build(ctx);+ return new Tile+ {+ Placements = ctx.Placements.ToList(), Paints = ctx.Paints.ToList(),+ Report = new HexTileReport+ {+ Prototype = id, Title = proto.Title, Q = h.q, R = h.r, Pieces = ctx.Placements.Count, Budget = proto.TriangleBudget,+ StandIns = ctx.Placements.Count(p => p.StandIn == StandIn.Flat || HexModels.Prefab(HexModels.Resolve(p.Model, p.Position)) == null),+ Triangles = ctx.Placements.Sum(p => p.StandIn == StandIn.Flat ? 12 : HexModels.Triangles(p.Model, p.StandIn, p.Position)),+ // Which models drew and which fell back to stand-ins ("~" marks a missing model).+ Models = string.Join(", ", ctx.Placements.GroupBy(p => p.StandIn == StandIn.Flat ? "flat" : (HexModels.Prefab(HexModels.Resolve(p.Model, p.Position)) == null ? "~" : "") + p.Model)+ .OrderBy(g => g.Key).Select(g => $"{g.Key} x{g.Count()}")),+ },+ };+ }++ /// <summary>A hex's unit, standing at idle on its centre under <paramref name="parent"/>, and its report.</summary>+ static HexTileReport BuildUnit(BoardHex h, HexBoardSurface surface, Transform parent)+ {+ var type = HexUnitTypes.Create(h.unit);+ var unit = type.Create();+ var motion = new HexUnitMotion(unit, new[] { (h.q, h.r) }, surface, parent, HexScale.HexM, h.facing);+ motion.Pose(0f, false);+ return new HexTileReport+ {+ Prototype = "unit:" + h.unit, Title = type.Title, Q = h.q, R = h.r, Pieces = unit.Members.Count, Budget = int.MaxValue,+ StandIns = unit.Members.Count(m => HexModels.Prefab(m.Model) == null),+ Triangles = unit.Members.Sum(m => HexModels.Triangles(m.Model, m.StandIn, Vector3.zero)),+ Models = string.Join(", ", unit.Members.GroupBy(m => (HexModels.Prefab(m.Model) == null ? "~" : "") + m.Model).Select(g => $"{g.Key} x{g.Count()}")),+ };+ }+/// <summary>The board's world bounds: every hex plus one hex of sea around it.</summary>public static Rect Bounds(HexBoard board, float sizeM = HexScale.HexM){@@ -104,7 +190,7 @@ namespace Statecraft.HexTiles/// <summary>Road width on the ground, metres (a Civ road reads as a thin track from far away).</summary>public const float RoadM = 170f;- static void BuildTerrain(Transform root, HexBoard board, HexBoardSurface surface, Func<string, (Texture2D?, Texture2D?)>? textures, HexBoardAssets assets,+ static (TerrainData data, Rect rect) BuildTerrain(Transform root, HexBoard board, HexBoardSurface surface, Func<string, (Texture2D?, Texture2D?)>? textures, HexBoardAssets assets,List<(HexPaint paint, int q, int r)> paints, bool holesOutsideLand){var rect = Bounds(board);@@ -118,7 +204,6 @@ namespace Statecraft.HexTilesheights[z, x] = Mathf.InverseLerp(MinY, MaxY, surface.Height(p));}data.SetHeights(0, 0, heights);- var ids = HexGround.Ids;data.terrainLayers = HexGround.Layers.Select(l =>{var (albedo, normal) = textures?.Invoke(l.texture) ?? (null, null);@@ -131,20 +216,7 @@ namespace Statecraft.HexTilesreturn layer;}).ToArray();data.alphamapResolution = AlphaRes;- var alpha = new float[AlphaRes, AlphaRes, ids.Count];- var w = new float[ids.Count];- for (int z = 0; z < AlphaRes; z++)- for (int x = 0; x < AlphaRes; x++)- {- surface.GroundWeights(new Vector3(rect.x + rect.width * x / (AlphaRes - 1f), 0f, rect.y + rect.height * z / (AlphaRes - 1f)), ids, w);- for (int l = 0; l < ids.Count; l++) alpha[z, x, l] = w[l];- }- // Paints, clipped to their own hex (a tile owns its ground), then roads, which run across hexes.- foreach (var (paint, q, r) in paints) Paint(alpha, rect, ids, paint, HexGeometry.Centre(q, r, HexScale.HexM), surface);- foreach (var line in board.RoadLines())- for (int i = 0; i + 1 < line.Length; i++)- Paint(alpha, rect, ids, new HexPaint("dirt", line[i], line[i + 1], RoadM, 0f, 0f, 0.5f, 1f, true), null, surface);- data.SetAlphamaps(0, 0, alpha);+ data.SetAlphamaps(0, 0, Splat(board, surface, rect, paints, 0, 0, AlphaRes, AlphaRes));if (holesOutsideLand){// Holes everywhere but the board's land (and a sliver of shore), so the real map shows around it.@@ -168,19 +240,55 @@ namespace Statecraft.HexTilesgo.transform.localPosition = new Vector3(rect.x, MinY, rect.y);var m = assets.Own(HexMaterials.New(holesOutsideLand ? HexMaterials.TerrainHoles : HexMaterials.Terrain));t.materialTemplate = m; t.heightmapPixelError = 2f; t.basemapDistance = 1e7f; t.drawTreesAndFoliage = false;+ return (data, rect);+ }++ /// <summary>The ground splat over alphamap pixels [x0, x0 + w) x [z0, z0 + h): each hex's layer blended across+ /// edges (HexBoardSurface.GroundWeights), then the tiles' paints, each clipped to its own hex, then the roads.</summary>+ static float[,,] Splat(HexBoard board, HexBoardSurface surface, Rect rect, IEnumerable<(HexPaint paint, int q, int r)> paints, int x0, int z0, int w, int h)+ {+ var ids = HexGround.Ids;+ var alpha = new float[h, w, ids.Count];+ var wt = new float[ids.Count];+ for (int z = 0; z < h; z++)+ for (int x = 0; x < w; x++)+ {+ surface.GroundWeights(new Vector3(rect.x + rect.width * (x0 + x) / (AlphaRes - 1f), 0f, rect.y + rect.height * (z0 + z) / (AlphaRes - 1f)), ids, wt);+ for (int l = 0; l < ids.Count; l++) alpha[z, x, l] = wt[l];+ }+ // Paints, clipped to their own hex (a tile owns its ground), then roads, which run across hexes.+ foreach (var (paint, q, r) in paints) Paint(alpha, rect, ids, paint, HexGeometry.Centre(q, r, HexScale.HexM), surface, x0, z0);+ foreach (var line in board.RoadLines())+ for (int i = 0; i + 1 < line.Length; i++)+ Paint(alpha, rect, ids, new HexPaint("dirt", line[i], line[i + 1], RoadM, 0f, 0f, 0.5f, 1f, true), null, surface, x0, z0);+ return alpha;+ }++ /// <summary>Recomputes the splat round <paramref name="centre"/>: the hex and as far as its ground blends into its+ /// neighbours (the environment's wide blend reaches about 1.45 hexes).</summary>+ static void Repaint(HexBoardState state, Vector3 centre)+ {+ float reach = 1.6f * HexScale.HexM;+ var rect = state.Rect;+ int Px(float x) => Mathf.Clamp(Mathf.RoundToInt((x - rect.x) / rect.width * (AlphaRes - 1)), 0, AlphaRes - 1);+ int Pz(float z) => Mathf.Clamp(Mathf.RoundToInt((z - rect.y) / rect.height * (AlphaRes - 1)), 0, AlphaRes - 1);+ int x0 = Px(centre.x - reach), x1 = Px(centre.x + reach), z0 = Pz(centre.z - reach), z1 = Pz(centre.z + reach);+ var paints = state.Paints.OrderBy(kv => kv.Key.q).ThenBy(kv => kv.Key.r).SelectMany(kv => kv.Value.Select(p => (p, kv.Key.q, kv.Key.r)));+ state.Terrain.SetAlphamaps(x0, z0, Splat(state.Board, state.Surface, rect, paints, x0, z0, x1 - x0 + 1, z1 - z0 + 1));}/// <summary>Blends one paint into the splat: weight 1 inside, easing to 0 over its soft edge; never on water; when- /// <paramref name="clipCentre"/> is given, only inside that hex.</summary>- static void Paint(float[,,] alpha, Rect rect, IReadOnlyList<string> ids, HexPaint p, Vector3? clipCentre, HexBoardSurface surface)+ /// <paramref name="clipCentre"/> is given, only inside that hex. <paramref name="alpha"/> holds the alphamap from+ /// pixel (<paramref name="ox"/>, <paramref name="oz"/>).</summary>+ static void Paint(float[,,] alpha, Rect rect, IReadOnlyList<string> ids, HexPaint p, Vector3? clipCentre, HexBoardSurface surface, int ox = 0, int oz = 0){int layer = -1; for (int i = 0; i < ids.Count; i++) if (ids[i] == p.Layer) layer = i;if (layer < 0) return;- int n = alpha.GetLength(0), layers = alpha.GetLength(2);+ int n = AlphaRes, layers = alpha.GetLength(2);float reach = p.Line ? p.Width : 0.75f * Mathf.Max(p.Width, p.Depth);float x0 = Mathf.Min(p.A.x, p.B.x) - reach, x1 = Mathf.Max(p.A.x, p.B.x) + reach, z0 = Mathf.Min(p.A.z, p.B.z) - reach, z1 = Mathf.Max(p.A.z, p.B.z) + reach;- int i0 = Mathf.Max(0, Mathf.FloorToInt((x0 - rect.x) / rect.width * (n - 1))), i1 = Mathf.Min(n - 1, Mathf.CeilToInt((x1 - rect.x) / rect.width * (n - 1)));- int j0 = Mathf.Max(0, Mathf.FloorToInt((z0 - rect.y) / rect.height * (n - 1))), j1 = Mathf.Min(n - 1, Mathf.CeilToInt((z1 - rect.y) / rect.height * (n - 1)));+ int i0 = Mathf.Max(ox, Mathf.FloorToInt((x0 - rect.x) / rect.width * (n - 1))), i1 = Mathf.Min(ox + alpha.GetLength(1) - 1, Mathf.CeilToInt((x1 - rect.x) / rect.width * (n - 1)));+ int j0 = Mathf.Max(oz, Mathf.FloorToInt((z0 - rect.y) / rect.height * (n - 1))), j1 = Mathf.Min(oz + alpha.GetLength(0) - 1, Mathf.CeilToInt((z1 - rect.y) / rect.height * (n - 1)));var inv = Quaternion.Euler(0f, -p.Yaw, 0f);for (int j = j0; j <= j1; j++)for (int i = i0; i <= i1; i++)@@ -204,7 +312,7 @@ namespace Statecraft.HexTiles}k *= p.Strength;if (k <= 0f) continue;- for (int l2 = 0; l2 < layers; l2++) alpha[j, i, l2] = alpha[j, i, l2] * (1f - k) + (l2 == layer ? k : 0f);+ for (int l2 = 0; l2 < layers; l2++) alpha[j - oz, i - ox, l2] = alpha[j - oz, i - ox, l2] * (1f - k) + (l2 == layer ? k : 0f);}}@@ -241,9 +349,11 @@ namespace Statecraft.HexTiles[ExecuteAlways]public sealed class HexBoardAssets : MonoBehaviour{- readonly List<Object> owned = new List<Object>();+ [SerializeField, HideInInspector] List<Object> owned = new List<Object>();readonly List<Action> teardown = new List<Action>();public T Own<T>(T o) where T : Object { owned.Add(o); return o; }+ /// <summary>Destroys <paramref name="o"/> now if the board made it (a rebuilt hex's meshes and materials).</summary>+ public void Release(Object? o) { if (o != null && owned.Remove(o)) { if (Application.isPlaying) Destroy(o); else DestroyImmediate(o); } }/// <summary>Runs when the board is destroyed, last registered first (e.g. restoring the real map's heights).</summary>public void OnTeardown(Action undo) => teardown.Add(undo);void OnDestroy() => Teardown();@@ -259,13 +369,24 @@ namespace Statecraft.HexTiles}}+ /// <summary>What a board built with Options.PerHex keeps for HexBoardBuilder.RebuildHex: the board (whose hexes the+ /// Hex Painter edits), its ground, the build seed, the terrain and its board-space rect, and each tile's paints and+ /// report. Not saved with the scene: after a domain reload the painter loads the board again.</summary>+ public sealed class HexBoardState : MonoBehaviour+ {+ public HexBoard Board = null!; public HexBoardSurface Surface = null!; public int Seed; public TerrainData Terrain = null!; public Rect Rect;+ public readonly Dictionary<(int q, int r), List<HexPaint>> Paints = new Dictionary<(int q, int r), List<HexPaint>>();+ public readonly Dictionary<(int q, int r), HexTileReport> Reports = new Dictionary<(int q, int r), HexTileReport>();+ }+/// <summary>Draws placements: static models and stand-ins combined into one renderer per material, skinned models- /// (figures, animals) instantiated and posed at their idle's first frame.</summary>+ /// (figures, animals) instantiated and posed at their idle's first frame. All under one new child of+ /// <paramref name="root"/> named <paramref name="name"/>.</summary>public static class HexBoardRenderer{- public static void Emit(Transform root, IEnumerable<HexPlacement> placements, HexBoardAssets assets)+ public static Transform Emit(Transform root, IEnumerable<HexPlacement> placements, HexBoardAssets assets, string name = HexBoardBuilder.PiecesName){- var parent = new GameObject("HexBoardPieces").transform; parent.SetParent(root, false);+ var parent = new GameObject(name).transform; parent.SetParent(root, false);var groups = new Dictionary<Material, List<CombineInstance>>();var parts = new Dictionary<(string, Fit), HexModels.Part[]>();var tints = new Dictionary<Color, Material>();@@ -338,6 +459,7 @@ namespace Statecraft.HexTilesgo.GetComponent<MeshFilter>().sharedMesh = mesh;go.GetComponent<MeshRenderer>().sharedMaterial = m;}+ return parent;}}diff --git a/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardOverrides.cs b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardOverrides.csnew file mode 100644index 000000000..f16c4e2ac--- /dev/null+++ b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardOverrides.cs@@ -0,0 +1,117 @@+#nullable enable+using System;+using System.Collections.Generic;+using System.Globalization;+using System.Linq;+using UnityEngine;++namespace Statecraft.HexTiles+{+ [Serializable] public sealed class BoardHexRef { public int q, r; }++ /// <summary>One hand edit: set one field of one hex to <see cref="value"/> (facing as invariant-culture degrees).</summary>+ [Serializable] public sealed class BoardHexValue { public BoardHexRef hex = new BoardHexRef(); public string value = ""; }++ /// <summary>A board's hand edits, kept beside it as <id>.overrides.json so they survive regeneration:+ /// tools/hex_tiles/make_board.py applies them last when it writes the board, and HexBoard.Load applies them again at+ /// load (the same edits twice give the same board). The Hex Painter writes them.+ /// The shape follows the map editor's content/map/overrides.yaml (#1099): one list per field of {hex: {q, r}, value},+ /// no hex twice in a list, so an edit that sets a unit to "" or a facing to 0 is still an edit and an absent field is+ /// never touched. The fields are hex-tile presentation only (prototype, ground, unit, facing, region: the tile, its+ /// ground layer, the unit standing on it, and the region whose trees dress it); terrain, control and locations are+ /// the map editor's, in content/map/overrides.yaml. This file stays out of content/, so the sim never reads it and+ /// painting a hex never moves the content hash.</summary>+ [Serializable] public sealed class HexBoardOverrides+ {+ public const string Suffix = ".overrides";+ public static readonly string[] Fields = { "prototype", "ground", "unit", "facing", "region" };++ public string board = "";+ public BoardHexValue[] prototype = Array.Empty<BoardHexValue>();+ public BoardHexValue[] ground = Array.Empty<BoardHexValue>();+ public BoardHexValue[] unit = Array.Empty<BoardHexValue>();+ public BoardHexValue[] facing = Array.Empty<BoardHexValue>();+ public BoardHexValue[] region = Array.Empty<BoardHexValue>();++ public static HexBoardOverrides FromJson(string json)+ {+ var o = JsonUtility.FromJson<HexBoardOverrides>(json) ?? new HexBoardOverrides();+ foreach (var field in Fields)+ {+ var list = o.List(field) ?? Array.Empty<BoardHexValue>();+ o.SetList(field, list);+ var seen = new HashSet<(int, int)>();+ foreach (var e in list)+ if (!seen.Add((e.hex.q, e.hex.r))) throw new ArgumentException($"a second {field} override of hex ({e.hex.q},{e.hex.r})");+ }+ return o;+ }++ public string ToJson() => JsonUtility.ToJson(this, true) + "\n";++ /// <summary>Applies every edit. Returns the edits whose hex the board does not have (not applied), with their field.</summary>+ public List<(string field, BoardHexValue edit)> Apply(HexBoard target)+ {+ var missing = new List<(string, BoardHexValue)>();+ foreach (var field in Fields)+ foreach (var e in List(field))+ {+ if (target.Hexes.TryGetValue((e.hex.q, e.hex.r), out var h)) Set(h, field, e.value);+ else missing.Add((field, e));+ }+ return missing;+ }++ /// <summary>Records an edit: replaces this hex's earlier edit of the same field, else adds one at the end.</summary>+ public void Record(int q, int r, string field, string value)+ {+ var list = List(field).ToList();+ int i = list.FindIndex(e => e.hex.q == q && e.hex.r == r);+ if (i >= 0) list[i].value = value; else list.Add(new BoardHexValue { hex = new BoardHexRef { q = q, r = r }, value = value });+ SetList(field, list.ToArray());+ }++ /// <summary>The edits of one field.</summary>+ public BoardHexValue[] List(string field) => field switch+ {+ "prototype" => prototype, "ground" => ground, "unit" => unit, "facing" => facing, "region" => region,+ _ => throw new ArgumentException(Unknown(field)),+ };++ void SetList(string field, BoardHexValue[] list)+ {+ switch (field)+ {+ case "prototype": prototype = list; break;+ case "ground": ground = list; break;+ case "unit": unit = list; break;+ case "facing": facing = list; break;+ case "region": region = list; break;+ default: throw new ArgumentException(Unknown(field));+ }+ }++ /// <summary>The value of <paramref name="field"/> on a hex, as an edit stores it.</summary>+ public static string Get(BoardHex h, string field) => field switch+ {+ "prototype" => h.prototype, "ground" => h.ground, "unit" => h.unit, "region" => h.region,+ "facing" => h.facing.ToString("R", CultureInfo.InvariantCulture),+ _ => throw new ArgumentException(Unknown(field)),+ };++ public static void Set(BoardHex h, string field, string value)+ {+ switch (field)+ {+ case "prototype": h.prototype = value; break;+ case "ground": h.ground = value; break;+ case "unit": h.unit = value; break;+ case "region": h.region = value; break;+ case "facing": h.facing = float.Parse(value, NumberStyles.Float, CultureInfo.InvariantCulture); break;+ default: throw new ArgumentException(Unknown(field));+ }+ }++ static string Unknown(string field) => $"override field '{field}' is not one of {string.Join(", ", Fields)}";+ }+}diff --git a/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardOverrides.cs.meta b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardOverrides.cs.metanew file mode 100644index 000000000..f163c5f5b--- /dev/null+++ b/unity/Assets/Scripts/Map/HexTiles/Core/HexBoardOverrides.cs.meta@@ -0,0 +1,2 @@+fileFormatVersion: 2+guid: 6d7a8048acbc74e1094244b4a01a0f5a\ No newline at end of filediff --git a/unity/Assets/Scripts/Map/HexTiles/Core/HexEnvironment.cs b/unity/Assets/Scripts/Map/HexTiles/Core/HexEnvironment.csindex d9edaa75b..1f289d796 100644--- a/unity/Assets/Scripts/Map/HexTiles/Core/HexEnvironment.cs+++ b/unity/Assets/Scripts/Map/HexTiles/Core/HexEnvironment.cs@@ -1,49 +1,72 @@#nullable enable+using System;using System.Collections.Generic;+using System.Linq;using UnityEngine;namespace Statecraft.HexTiles{/// <summary>Dresses the board's environment hexes (BoardHex.env) as one continuous landscape round the playable/// hexes: woods, scattered trees and rock outcrops whose density follows a noise field in world space, so they run- /// across hex boundaries with no tile shape, no inset and no hex lines (the builder skips their edges). Deterministic.</summary>+ /// across hex boundaries with no tile shape, no inset and no hex lines (the builder skips their edges). Deterministic.+ /// The species, their density and the rocks come from the hex's region (BoardRegion, from tools/hex_tiles/regions.yaml:+ /// oak and pine woods in the north, citrus and date palm on the coast, acacia and desert rock in the south); a hex with+ /// no region gets the built-in mix (BoardRegion.BuiltIn), which plants exactly what this did before regions.</summary>public static class HexEnvironment{const float GridM = 820f, WoodScaleM = 7000f, DetailScaleM = 1900f;- public static IEnumerable<HexPlacement> Dress(HexBoard board, IHexSurface surface, int seed = 1948)+ public static IEnumerable<HexPlacement> Dress(HexBoard board, IHexSurface surface, int seed = 1948) =>+ board.Hexes.Values.SelectMany(h => DressHex(board, h, surface, seed));++ /// <summary>One environment hex's trees and rocks (none for a play or water hex). Each hex plants only inside+ /// itself, so a hex can be redressed alone (the Hex Painter).</summary>+ public static IEnumerable<HexPlacement> DressHex(HexBoard board, BoardHex h, IHexSurface surface, int seed = 1948){- foreach (var h in board.Hexes.Values)- {- if (!h.env || HexBoard.TerrainOf(h) == HexTerrain.Water) continue;- var ctx = new HexTileContext(h.q, h.r, surface, seed ^ 0x5eed, HexScale.HexM, insetShare: 0f);- var c = ctx.Centre;- bool hills = HexBoard.TerrainOf(h) != HexTerrain.Flat;- int n = Mathf.CeilToInt(HexScale.HexM / GridM);- for (int i = -n; i <= n; i++)- for (int j = -n; j <= n; j++)- {- // A world-aligned jittered grid, so neighbouring hexes continue the same pattern.- float gx = Mathf.Round(c.x / GridM) * GridM + i * GridM, gz = Mathf.Round(c.z / GridM) * GridM + j * GridM;- uint hsh = unchecked((uint)(Mathf.FloorToInt(gx) * 73856093 ^ Mathf.FloorToInt(gz) * 19349663 ^ seed));- float r1 = (hsh & 0xFFFF) / 65535f, r2 = ((hsh >> 16) & 0xFFFF) / 65535f;- var p = new Vector3(gx + (r1 - 0.5f) * GridM * 0.8f, 0f, gz + (r2 - 0.5f) * GridM * 0.8f);- if (!HexGeometry.InHex(p, c, HexScale.HexM)) continue;- float wood = Mathf.PerlinNoise(p.x / WoodScaleM + 3.3f, p.z / WoodScaleM + 7.7f);- float detail = Mathf.PerlinNoise(p.x / DetailScaleM + 1.1f, p.z / DetailScaleM + 2.2f);- // Woods in clumps with open country between (a few lone trees), never an even sprinkle.- float density = hills ? Mathf.SmoothStep(0f, 1f, Mathf.InverseLerp(0.48f, 0.6f, wood)) : Mathf.SmoothStep(0f, 1f, Mathf.InverseLerp(0.56f, 0.68f, wood)) * 0.85f;- density = Mathf.Max(density * (0.6f + 0.6f * detail), 0.035f);- if (r1 * 0.7f + r2 * 0.3f > density) continue;- string model = hills ? (detail > 0.55f ? "sandbox:aleppo_pine_lite" : "sandbox:tabor_oak_lite") : (detail > 0.6f ? "sandbox:carob_lite" : "sandbox:olive_lite");- ctx.PlaceByHeight(model, p, r1 * 360f, (0.11f + 0.04f * r2) * HexScale.HexM, hills && detail > 0.55f ? StandIn.Pine : StandIn.Tree, null, 0.3f, 40f);- }- if (hills)- for (int k = 0; k < 2; k++)- if (ctx.Rng.NextDouble() < 0.6)- ctx.PlaceByWidth("sandbox:limestone*", ctx.RandomPoint(), ctx.Range(0f, 360f), ctx.Range(0.06f, 0.1f) * HexScale.HexM, StandIn.Rock, null, 60f);- foreach (var placement in ctx.Placements) yield return placement;- }+ if (!h.env || HexBoard.TerrainOf(h) == HexTerrain.Water) yield break;+ var ctx = new HexTileContext(h.q, h.r, surface, seed ^ 0x5eed, HexScale.HexM, insetShare: 0f);+ var c = ctx.Centre;+ bool hills = HexBoard.TerrainOf(h) != HexTerrain.Flat;+ var region = board.RegionOf(h);+ var species = Mix(hills ? region.hills : region.flat, hills ? BoardRegion.BuiltIn.hills : BoardRegion.BuiltIn.flat);+ int n = Mathf.CeilToInt(HexScale.HexM / GridM);+ for (int i = -n; i <= n; i++)+ for (int j = -n; j <= n; j++)+ {+ // A world-aligned jittered grid, so neighbouring hexes continue the same pattern.+ float gx = Mathf.Round(c.x / GridM) * GridM + i * GridM, gz = Mathf.Round(c.z / GridM) * GridM + j * GridM;+ uint hsh = unchecked((uint)(Mathf.FloorToInt(gx) * 73856093 ^ Mathf.FloorToInt(gz) * 19349663 ^ seed));+ float r1 = (hsh & 0xFFFF) / 65535f, r2 = ((hsh >> 16) & 0xFFFF) / 65535f;+ var p = new Vector3(gx + (r1 - 0.5f) * GridM * 0.8f, 0f, gz + (r2 - 0.5f) * GridM * 0.8f);+ if (!HexGeometry.InHex(p, c, HexScale.HexM)) continue;+ float wood = Mathf.PerlinNoise(p.x / WoodScaleM + 3.3f, p.z / WoodScaleM + 7.7f);+ float detail = Mathf.PerlinNoise(p.x / DetailScaleM + 1.1f, p.z / DetailScaleM + 2.2f);+ // Woods in clumps with open country between (a few lone trees), never an even sprinkle.+ float density = hills ? Mathf.SmoothStep(0f, 1f, Mathf.InverseLerp(0.48f, 0.6f, wood)) : Mathf.SmoothStep(0f, 1f, Mathf.InverseLerp(0.56f, 0.68f, wood)) * 0.85f;+ density = Mathf.Max(density * (0.6f + 0.6f * detail), 0.035f) * region.density;+ if (r1 * 0.7f + r2 * 0.3f > density) continue;+ // The species by the detail noise, so each kind clumps: the first whose share of the mix reaches it.+ var kind = Pick(species, detail);+ ctx.PlaceByHeight(kind.model, p, r1 * 360f, (0.11f + 0.04f * r2) * HexScale.HexM, kind.StandIn, null, 0.3f, 40f);+ }+ // Rounded so the built-in 0.6 compares exactly as the double it always was.+ double rockChance = Math.Round(region.rockChance, 4);+ if (hills || region.rocksOnFlat)+ for (int k = 0; k < 2; k++)+ if (ctx.Rng.NextDouble() < rockChance)+ ctx.PlaceByWidth(region.rock, ctx.RandomPoint(), ctx.Range(0f, 360f), ctx.Range(0.06f, 0.1f) * HexScale.HexM, StandIn.Rock, null, 60f);+ foreach (var placement in ctx.Placements) yield return placement;+ }++ static BoardSpecies[] Mix(BoardSpecies[]? own, BoardSpecies[] builtIn) => own != null && own.Sum(s => s.weight) > 0f ? own : builtIn;++ /// <summary>The first species whose running share of the mix reaches <paramref name="u"/> (0..1); the last otherwise.</summary>+ public static BoardSpecies Pick(BoardSpecies[] mix, float u)+ {+ float total = 0f; foreach (var s in mix) total += s.weight;+ float acc = 0f;+ for (int i = 0; i < mix.Length - 1; i++) { acc += mix[i].weight; if (u * total <= acc) return mix[i]; }+ return mix[mix.Length - 1];}}