-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Suke-H/28-yaml形式の変更
#28 yaml形式の変更
- Loading branch information
Showing
9 changed files
with
277 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
import { CELL_TYPES } from "../constants/cell-types"; | ||
import { CELL_TYPES, CELL_DEFINITIONS } from "../constants/cell-types"; | ||
|
||
export type CellType = keyof typeof CELL_TYPES; | ||
export type CellType = keyof typeof CELL_TYPES | ||
export type CellDefinitions = keyof typeof CELL_DEFINITIONS; | ||
|
||
// グリッド上のセルを表す型 | ||
export type GridCell = { | ||
type: CellDefinitions; | ||
side: 'neutral' | 'front' | 'back'; | ||
}; | ||
|
||
// パネルの型を更新 | ||
export interface Panel { | ||
id: string; | ||
cells: CellType[][]; | ||
} | ||
|
||
export interface PanelPlacementModeType { | ||
export type PanelPlacementModeType = { | ||
panel: Panel | null; | ||
highlightedCell: { row: number; col: number } | null; | ||
} | ||
}; | ||
|
||
export interface PanelPlacementHistoryType { | ||
panel: Panel | null; | ||
highlightedCell: { row: number; col: number } | null; | ||
} | ||
export type PanelPlacementHistoryType = PanelPlacementModeType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.