Edit

Share via


IGKGameModel.SetGameModel(IGKGameModel) Method

Definition

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.

Applies to