SolidCellPlace型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where a cell is on the picture, in pixels from the top left of the box.
インポート
import type { SolidCellPlace } from "@johnmorrisdotca/meikyuu/3d/play";
定義
type SolidCellPlace = {
x: number;
y: number;
visible: boolean;
facing: number;
room: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
x | number | |
y | number | |
visible | boolean | |
facing | number | |
room | number |
例
import type { SolidCellPlace } from "@johnmorrisdotca/meikyuu/3d/play";
const value: SolidCellPlace = {x:320,y:240,visible:true,facing:1,room:100};
console.log(value);{ x: 320, y: 240, visible: true, facing: 1, room: 100 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。