createLesson関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Creates a fresh lesson game with its authored setup and queue.
インポート
import { createLesson } from "@johnmorrisdotca/houseki/magnetic-blocks";
定義
function createLesson(id: string): GameState
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A stable content id, or the one-based display number when numbers are accepted. |
戻り値
GameState
Creates a fresh lesson game with its authored setup and queue.
例
import { createLesson, lessonManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";
console.log(createLesson(lessonManifest[0].id).phase);falling出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。