コード例 #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)
 {
     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);
     InvitedUsers       = new UserList(CAPI.ovr_Room_GetInvitedUsers(o));
     IsMembershipLocked = CAPI.ovr_Room_GetIsMembershipLocked(o);
     JoinPolicy         = CAPI.ovr_Room_GetJoinPolicy(o);
     Joinability        = CAPI.ovr_Room_GetJoinability(o);
     MatchedUsers       = new MatchmakingEnqueuedUserList(CAPI.ovr_Room_GetMatchedUsers(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 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) :
 }