dieName関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What one kind of die is called: d6, dF, a loaded d6{6:3}, a custom
d[Yes,No,Maybe]. It is how the kind is written in notation, so two dice
with the same name are the same die.
インポート
import { dieName } from "@johnmorrisdotca/korokoro";
定義
function dieName(group: DiceGroup): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
group | DiceGroup | One kind of dice and its rules. |
戻り値
string
What one kind of die is called: d6, dF, a loaded d6{6:3}, a custom d[Yes,No,Maybe]. It is how the kind is written in notation, so two dice with the same name are the same die.
例
import { dieName } from "@johnmorrisdotca/korokoro";
import { parseNotation } from "@johnmorrisdotca/korokoro";
console.log(dieName(parseNotation("4dF")!));dF出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。