areNeighbours関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether two territories are neighbours, by land or by sea.
インポート
import { areNeighbours } from "@johnmorrisdotca/tenka";
定義
function areNeighbours(a: number, b: number, map?: TenkaMap): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
a | number | The first territory index. |
b | number | The second territory index. |
map (省略可) | TenkaMap | The native world or Europe map to use. |
戻り値
boolean
Whether two territories are neighbours, by land or by sea.
例
import { areNeighbours } from "@johnmorrisdotca/tenka";
console.log(areNeighbours(0,1));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。