コード例 #1
0
 public Room(IntPtr o)
 {
   ApplicationID = CAPI.ovr_Room_GetApplicationID(o);
   DataStore = CAPI.DataStoreFromNative(CAPI.ovr_Room_GetDataStore(o));
   Description = CAPI.ovr_Room_GetDescription(o);
   ID = CAPI.ovr_Room_GetID(o);
   {
     var pointer = CAPI.ovr_Room_GetInvitedUsers(o);
     InvitedUsers = new UserList(pointer);
     if (pointer == IntPtr.Zero) {
       InvitedUsersOptional = null;
     } else {
       InvitedUsersOptional = InvitedUsers;
     }
   }
   IsMembershipLocked = CAPI.ovr_Room_GetIsMembershipLocked(o);
   JoinPolicy = CAPI.ovr_Room_GetJoinPolicy(o);
   Joinability = CAPI.ovr_Room_GetJoinability(o);
   {
     var pointer = CAPI.ovr_Room_GetMatchedUsers(o);
     MatchedUsers = new MatchmakingEnqueuedUserList(pointer);
     if (pointer == IntPtr.Zero) {
       MatchedUsersOptional = null;
     } else {
       MatchedUsersOptional = MatchedUsers;
     }
   }
   MaxUsers = CAPI.ovr_Room_GetMaxUsers(o);
   Name = CAPI.ovr_Room_GetName(o);
   {
     var pointer = CAPI.ovr_Room_GetOwner(o);
     Owner = new User(pointer);
     if (pointer == IntPtr.Zero) {
       OwnerOptional = null;
     } else {
       OwnerOptional = Owner;
     }
   }
   {
     var pointer = CAPI.ovr_Room_GetTeams(o);
     Teams = new TeamList(pointer);
     if (pointer == IntPtr.Zero) {
       TeamsOptional = null;
     } else {
       TeamsOptional = Teams;
     }
   }
   Type = CAPI.ovr_Room_GetType(o);
   {
     var pointer = CAPI.ovr_Room_GetUsers(o);
     Users = new UserList(pointer);
     if (pointer == IntPtr.Zero) {
       UsersOptional = null;
     } else {
       UsersOptional = Users;
     }
   }
   Version = CAPI.ovr_Room_GetVersion(o);
 }
コード例 #2
0
 public Room(IntPtr o)
 {
     ID                 = CAPI.ovr_Room_GetID(o);
     ApplicationID      = CAPI.ovr_Room_GetApplicationID(o);
     DataStore          = CAPI.DataStoreFromNative(CAPI.ovr_Room_GetDataStore(o));
     Description        = CAPI.ovr_Room_GetDescription(o);
     IsMembershipLocked = CAPI.ovr_Room_GetIsMembershipLocked(o);
     JoinPolicy         = CAPI.ovr_Room_GetJoinPolicy(o);
     Joinability        = CAPI.ovr_Room_GetJoinability(o);
     MaxUsers           = CAPI.ovr_Room_GetMaxUsers(o);
     Name               = CAPI.ovr_Room_GetName(o);
     Owner              = new User(CAPI.ovr_Room_GetOwner(o));
     Type               = CAPI.ovr_Room_GetType(o);
     Users              = new UserList(CAPI.ovr_Room_GetUsers(o));
     Version            = CAPI.ovr_Room_GetVersion(o);
 }
コード例 #3
0
 public MatchmakingEnqueuedUser(IntPtr o)
 {
     CustomData = CAPI.DataStoreFromNative(CAPI.ovr_MatchmakingEnqueuedUser_GetCustomData(o));
     {
         var pointer = CAPI.ovr_MatchmakingEnqueuedUser_GetUser(o);
         User = new User(pointer);
         if (pointer == IntPtr.Zero)
         {
             UserOptional = null;
         }
         else
         {
             UserOptional = User;
         }
     }
 }
コード例 #4
0
 public Room(IntPtr o)
 {
     ApplicationID = CAPI.ovr_Room_GetApplicationID(o) :
                         DataStore = CAPI.DataStoreFromNative(CAPI.ovr_Room_GetDataStore(o)) :
                                         Description                   = CAPI.ovr_Room_GetDescription(o) :
                                                                    ID = CAPI.ovr_Room_GetID(o) :
     {
         var pointer = CAPI.ovr_Room_GetInvitedUsers(o) :
                           InvitedUsers = new UserList(pointer) :
                                              if (pointer == IntPtr.Zero)
         {
             InvitedUsersOptional = null:
         }
         else
         {
             InvitedUsersOptional = InvitedUsers:
         }
     }
     IsMembershipLocked = CAPI.ovr_Room_GetIsMembershipLocked(o) :
                              JoinPolicy = CAPI.ovr_Room_GetJoinPolicy(o) :
                                               Joinability = CAPI.ovr_Room_GetJoinability(o) :
     {
         var pointer = CAPI.ovr_Room_GetMatchedUsers(o) :
                           MatchedUsers = new MatchmakingEnqueuedUserList(pointer) :
                                              if (pointer == IntPtr.Zero)
         {
             MatchedUsersOptional = null:
         }
         else
         {
             MatchedUsersOptional = MatchedUsers:
         }
     }
     MaxUsers                       = CAPI.ovr_Room_GetMaxUsers(o) :
                               Name = CAPI.ovr_Room_GetName(o) :
     {
         var pointer = CAPI.ovr_Room_GetOwner(o) :
                           Owner = new User(pointer) :
                                       if (pointer == IntPtr.Zero)
         {
             OwnerOptional = null:
         }
         else
         {
             OwnerOptional = Owner:
         }
     }
     Type = CAPI.ovr_Room_GetType(o) :
     {
         var pointer = CAPI.ovr_Room_GetUsers(o) :
                           Users = new UserList(pointer) :
                                       if (pointer == IntPtr.Zero)
         {
             UsersOptional = null:
         }
         else
         {
             UsersOptional = Users:
         }
     }
     Version = CAPI.ovr_Room_GetVersion(o) :
 }
コード例 #5
0
 public MatchmakingEnqueuedUser(IntPtr o)
 {
     CustomData = CAPI.DataStoreFromNative(CAPI.ovr_MatchmakingEnqueuedUser_GetCustomData(o));
     User       = new User(CAPI.ovr_MatchmakingEnqueuedUser_GetUser(o));
 }