LoadedPreset型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Loaded dice, kept in one place and in plain sight. Korokoro's own dice are
fair. These are not, they say so, and nothing here can make one pass for a
fair die: a loaded die's weights are part of its name (d6{6:3}), of its
spec, of every roll it makes and of every link to one.
インポート
import type { LoadedPreset } from "@johnmorrisdotca/korokoro";
定義
type LoadedPreset = {
id: string;
name: string;
notation: string;
says: string;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A short id, for code and links. |
name | string | What the die is called. |
notation | string | The dice, as notation. |
says | string | What it does, in a line. |
例
import type { LoadedPreset } from "@johnmorrisdotca/korokoro";
import { LOADED_PRESETS } from "@johnmorrisdotca/korokoro";
const value: LoadedPreset = LOADED_PRESETS[0]!;
console.log(value.notation);1d6{6:3}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。