GKGameModelUpdate

Trait GKGameModelUpdate 

Source
pub unsafe trait GKGameModelUpdate: NSObjectProtocol {
    // Provided methods
    unsafe fn value(&self) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn setValue(&self, value: NSInteger)
       where Self: Sized + Message { ... }
}
Available on crate feature GKGameModel only.
Expand description

A protocol used to encapsulate the data needed to affect an update to a game model. Typically represents an action or move performed by a player.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn value(&self) -> NSInteger
where Self: Sized + Message,

Property get/set by GKMinmaxStrategist to sort GKGameModelUpdates.

Source

unsafe fn setValue(&self, value: NSInteger)
where Self: Sized + Message,

Setter for value.

Trait Implementations§

Source§

impl ProtocolType for dyn GKGameModelUpdate

Source§

const NAME: &'static str = "GKGameModelUpdate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn GKGameModelUpdate

Implementations on Foreign Types§

Source§

impl<T> GKGameModelUpdate for ProtocolObject<T>

Implementors§