GKGameModel_Extensions Class
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.
Extension methods to the IGKGameModel interface to support all the methods from the GKGameModel protocol.
public static class GKGameModel_Extensions
type GKGameModel_Extensions = class
- Inheritance
-
GKGameModel_Extensions
Remarks
The extension methods for IGKGameModel allow developers to treat instances of the interface as having all the optional methods of the original GKGameModel protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.
Methods
GetScore(IGKGameModel, IGKGameModelPlayer) |
Gets the score for the specified |
IsLoss(IGKGameModel, IGKGameModelPlayer) |
Returns a Boolean value that tells whether the |
IsWin(IGKGameModel, IGKGameModelPlayer) |
Returns a Boolean value that tells whether the |
UnapplyGameModelUpdate(IGKGameModel, IGKGameModelUpdate) |
Removes the specified changes from the game's state. |