File tree 3 files changed +48
-0
lines changed
3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ import * as CR from 'typings'
2
+
3
+ // position
4
+ class Position {
5
+ private value : CR . Position
6
+ constructor ( ) {
7
+ this . value = {
8
+ levelId : '' ,
9
+ stageId : '' ,
10
+ stepId : '' ,
11
+ }
12
+ }
13
+ public get = ( ) => {
14
+ return this . value
15
+ }
16
+ public set = ( value : CR . Position ) => {
17
+ this . value = value
18
+ }
19
+ }
20
+
21
+ export default Position
Original file line number Diff line number Diff line change
1
+ import * as CR from 'typings'
2
+
3
+ // progress
4
+ class Progress {
5
+ private value : CR . Progress
6
+ constructor ( ) {
7
+ this . value = {
8
+ levels : { } ,
9
+ stages : { } ,
10
+ steps : { } ,
11
+ complete : false
12
+ }
13
+ }
14
+ public get = ( ) => {
15
+ return this . value
16
+ }
17
+ public set = ( value : CR . Progress ) => {
18
+ this . value = value
19
+ }
20
+ }
21
+
22
+ export default Progress
Original file line number Diff line number Diff line change
1
+ import Position from './Position'
2
+ import Progress from './Progress'
3
+
4
+ export const position = new Position ( )
5
+ export const progress = new Progress ( )
You can’t perform that action at this time.
0 commit comments