File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,16 @@ class Position {
1313 this . value = defaultValue
1414 }
1515 public get = ( ) => {
16- if ( ! this . value . levelId || ! this . value . stepId ) {
17- console . log ( 'NO POSITION RETURNED' )
18- }
19- console . log ( this . value )
2016 return this . value
2117 }
2218 public set = ( value : CR . Position ) => {
23- console . log ( '--- position set' )
24- console . log ( value )
2519 this . value = value
2620 }
2721 public reset = ( ) => {
2822 this . value = defaultValue
2923 }
3024 // calculate the current position based on the saved progress
3125 public setPositionFromProgress = ( tutorial : G . Tutorial , progress : CR . Progress ) : CR . Position => {
32- console . log ( '--- set position from progress' )
3326 // tutorial already completed
3427 // TODO handle start again?
3528 if ( progress . complete ) {
@@ -64,8 +57,6 @@ class Position {
6457 stepId : currentStep . id ,
6558 }
6659
67- console . log ( '--- calculated set position from progress' )
68- console . log ( this . value )
6960 return this . value
7061 }
7162}
You can’t perform that action at this time.
0 commit comments