objc2_game_kit/generated/
GKGameActivityPlayStyle.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4
5use crate::*;
6
7/// Play Style of the game activity. It can be either Asynchronous or Synchronous.
8///
9/// See also [Apple's documentation](https://developer.apple.com/documentation/gamekit/gkgameactivityplaystyle?language=objc)
10// NS_ENUM
11#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct GKGameActivityPlayStyle(pub NSInteger);
14impl GKGameActivityPlayStyle {
15    #[doc(alias = "GKGameActivityPlayStyleUnspecified")]
16    pub const Unspecified: Self = Self(0);
17    #[doc(alias = "GKGameActivityPlayStyleSynchronous")]
18    pub const Synchronous: Self = Self(1);
19    #[doc(alias = "GKGameActivityPlayStyleAsynchronous")]
20    pub const Asynchronous: Self = Self(2);
21}
22
23unsafe impl Encode for GKGameActivityPlayStyle {
24    const ENCODING: Encoding = NSInteger::ENCODING;
25}
26
27unsafe impl RefEncode for GKGameActivityPlayStyle {
28    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
29}