DiceWarRoll型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One player's roll in a throw: their faces, and what they add up to.
インポート
import type { DiceWarRoll } from "@johnmorrisdotca/korokoro";
定義
type DiceWarRoll = {
seat: number;
faces: number[];
total: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
seat | number | |
faces | number[] | |
total | number |
例
import type { DiceWarRoll } from "@johnmorrisdotca/korokoro";
const value: DiceWarRoll = { seat: 0, faces: [3, 4], total: 7 };
console.log(value.total);7出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。