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