objc2-game-kit 0.3.2

Bindings to the GameKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

/// Play Style of the game activity. It can be either Asynchronous or Synchronous.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/gamekit/gkgameactivityplaystyle?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct GKGameActivityPlayStyle(pub NSInteger);
impl GKGameActivityPlayStyle {
    #[doc(alias = "GKGameActivityPlayStyleUnspecified")]
    pub const Unspecified: Self = Self(0);
    #[doc(alias = "GKGameActivityPlayStyleSynchronous")]
    pub const Synchronous: Self = Self(1);
    #[doc(alias = "GKGameActivityPlayStyleAsynchronous")]
    pub const Asynchronous: Self = Self(2);
}

unsafe impl Encode for GKGameActivityPlayStyle {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for GKGameActivityPlayStyle {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}