playFrame関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The build at at, from 0 when the keel is laid to 1 when the ship flies.
インポート
import { playFrame } from "@johnmorrisdotca/uchusen-rockets";
定義
function playFrame(steps: readonly PlayStep[], at: number): PlayFrame
引数
| 名前 | 型 | 説明 |
|---|---|---|
steps | readonly PlayStep[] | The ship's build order. |
at | number | How far through the build, from 0 to 1. |
戻り値
PlayFrame
The story day and which slots are finished or underway.
例
import { buildOf, playFrame } from "@johnmorrisdotca/uchusen-rockets";
const steps = buildOf("miyamoto");
console.log(steps ? playFrame(steps, 0).going[0] : "");drive出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。