TenkaCardHow型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a dressing is told about a card it is asked to draw.
インポート
import type { TenkaCardHow } from "@johnmorrisdotca/tenka/ui";
ほかのエクスポート元: @johnmorrisdotca/tenka/dressing
定義
type TenkaCardHow = {
card: number;
territory: number | null;
kind: TenkaCardKind;
map: TenkaMapKey;
name: string;
label: string;
locale: TenkaLocale;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
card | number | The card's number: 0 and up the territories', then the two wild cards. |
territory | number | null | The territory it shows, or null for a wild card. |
kind | TenkaCardKind | Land, sea or air; or wild. |
map | TenkaMapKey | The map the game is on, which decides what the territory looks like. |
name | string | The territory's name in the table's language, or the word for a wild card. |
label | string | What a screen reader says for the card, in the table's language: "Land: Brazil". |
locale | TenkaLocale | The table's language. |
例
import type { TenkaCardHow } from "@johnmorrisdotca/tenka/ui";
const value: TenkaCardHow = {card:0,territory:0,kind:"land",map:"world",name:"Alaska",label:"Alaska",locale:"en"};
console.log(value);{
card: 0,
territory: 0,
kind: 'land',
map: 'world',
name: 'Alaska',
label: 'Alaska',
locale: 'en'
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。