-
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.
- Loading branch information
Showing
4 changed files
with
52 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
node_modules/ | ||
dist/ | ||
docs/ |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
type CellEntity = { | ||
x: number; | ||
y: number; | ||
groupId: number; | ||
groupX: number; | ||
groupY: number; | ||
color: string; | ||
cellId: string; | ||
cubeType: CUBE_TYPE; | ||
rotation: ROTATION_TYPE; | ||
}; | ||
type CellPosition = { | ||
x: number; | ||
y: number; | ||
}; | ||
type CubeBody = { | ||
name: string; | ||
bodyArray: (type: ROTATION_TYPE) => CellPosition[]; | ||
startY: number; | ||
color: string; | ||
previewSize: number; | ||
}; | ||
type CubeDescription = { | ||
[key in CUBE_TYPE]: CubeBody; | ||
}; | ||
declare enum CUBE_TYPE { | ||
CUBE1 = "S", | ||
CUBE2 = "T", | ||
CUBE3 = "I", | ||
CUBE4 = "L", | ||
CUBE5 = "Z", | ||
CUBE6 = "O", | ||
CUBE7 = "J" | ||
} | ||
declare enum ROTATION_TYPE { | ||
TYPE1 = "type1", | ||
TYPE2 = "type2", | ||
TYPE3 = "type3", | ||
TYPE4 = "type4" | ||
} | ||
declare enum MOVE_DIRECTION { | ||
LEFT = "left", | ||
DOWN = "down", | ||
RIGHT = "right", | ||
UP = "up" | ||
} | ||
type CubeAndType = { | ||
cubeItem?: CubeBody; | ||
cubeType?: CUBE_TYPE; | ||
}; |
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