Skip to content

Commit

Permalink
Rename ObjectIO.instance => phetioObject, see phetsims/tandem#91
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 30, 2019
1 parent 845ccae commit 0a240b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/game/model/BAAGameModelIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ define( function( require ) {
returnType: VoidIO,
parameterTypes: [ StringIO ],
implementation: function( levelType ) {
this.instance.startGameLevel( levelType );
this.phetioObject.startGameLevel( levelType );
},
documentation: 'Start one of the following games: periodic-table-game, mass-and-charge-game, symbol-game, advanced-symbol-game',
invocableForReadOnlyElements: false
Expand All @@ -43,7 +43,7 @@ define( function( require ) {
returnType: VoidIO,
parameterTypes: [ ArrayIO( ArrayIO( ObjectIO ) ) ],
implementation: function( challenges ) {
this.instance.setChallenges( challenges );
this.phetioObject.setChallenges( challenges );
},
documentation: 'Specify exact challenges',
invocableForReadOnlyElements: false
Expand All @@ -55,7 +55,7 @@ define( function( require ) {

// TODO: change this to take index as 1st argument (for level index)
implementation: function( allowedChallengeTypesByLevel ) {
this.instance.setAllowedChallengeTypesByLevel( allowedChallengeTypesByLevel );
this.phetioObject.setAllowedChallengeTypesByLevel( allowedChallengeTypesByLevel );
},

documentation: 'Specify which challenge types may be presented to the user for each level.',
Expand All @@ -77,7 +77,7 @@ define( function( require ) {
baaGameModel.challengeSetProperty.reset();
},

// addChildInstance: function( instance, tandem, stateObject ){
// addChildInstance: function( phetioObject, tandem, stateObject ){
//
// },

Expand Down

0 comments on commit 0a240b1

Please sign in to comment.