TenkaElementOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Full native host options, including names and custom card/dice drawings.
インポート
import type { TenkaElementOptions } from "@johnmorrisdotca/tenka/element";
ほかのエクスポート元: @johnmorrisdotca/tenka/element/define
定義
type TenkaElementOptions = TenkaTableOptions;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
players (省略可) | readonly string[] | undefined | The names round the table, in seat order: two to six. |
computers (省略可) | readonly boolean[] | undefined | Which seats the computer plays. By default every seat but the first. |
rounds (省略可) | number | undefined | Rounds before the count: 10, 20, or 60 for the whole world. |
seed (省略可) | number | undefined | The seed every deal and die is drawn from; a new one each game when absent. |
map (省略可) | TenkaMapKey | undefined | The map: |
colours (省略可) | readonly string[] | undefined | A colour for each seat. |
computerDelayMs (省略可) | number | undefined | How long the computer waits before each of its moves, in milliseconds. |
onChange (省略可) | ((game: TenkaGame) => void) | undefined | Told of every game after a move. |
locale (省略可) | TenkaLocale | undefined | The language of the table: |
strings (省略可) | Partial<TenkaStrings> | undefined | Words of your own, laid over the locale's: any of |
theme (省略可) | Readonly<Record<string, string>> | undefined | CSS variables set on the table itself, which win in light and dark alike: |
record (省略可) | boolean | undefined | Whether the table shows the record of the game, with saving and loading. True by default. |
dressing (省略可) | TenkaDressing | undefined | How the dice and the cards are drawn, if not the plain way: |
例
import type { TenkaElementOptions } from "@johnmorrisdotca/tenka/element";
const options: TenkaElementOptions = { record: false, seed: 7 };
console.log(options.seed);7出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。