IGKGameModel.SetGameModel(IGKGameModel) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the internal state of the game to gameModel
.
[Foundation.Export("setGameModel:")]
[Foundation.Preserve(Conditional=true)]
public void SetGameModel (GameplayKit.IGKGameModel gameModel);
abstract member SetGameModel : GameplayKit.IGKGameModel -> unit
Parameters
- gameModel
- IGKGameModel
- Attributes
Remarks
This method is called many times during the evaluation of GetBestMove(IGKGameModelPlayer), as that method attempts to minimize the number of IGKGameModel objects allocated and instead uses this method to "reuse" previously-allocated memory.