tenkaMapOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The map a game is played on: the one it was started on, and the world for a game saved before there was a choice.
インポート
import { tenkaMapOf } from "@johnmorrisdotca/tenka";
定義
function tenkaMapOf(game: Pick<TenkaGame, "map"> | TenkaMapKey | undefined): TenkaMap
引数
| 名前 | 型 | 説明 |
|---|---|---|
game | TenkaMapKey | Pick<TenkaGame, "map"> | undefined | The current native game state. |
戻り値
TenkaMap
The map a game is played on: the one it was started on, and the world for a game saved before there was a choice.
例
import { startTenka, tenkaMapOf } from "@johnmorrisdotca/tenka";
const game = startTenka(10,["Seat 1","Seat 2"],42)!;
console.log(tenkaMapOf(game).key);world出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。