Exemplo n.º 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);
 }
Exemplo n.º 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) :
     {
         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) :
 }
 public LaunchDetails(IntPtr o)
 {
     LaunchType = CAPI.ovr_LaunchDetails_GetLaunchType(o);
     RoomID     = CAPI.ovr_LaunchDetails_GetRoomID(o);
     Users      = new UserList(CAPI.ovr_LaunchDetails_GetUsers(o));
 }
 public LaunchInvitePanelFlowResult(IntPtr o)
 {
     InvitedUsers = new UserList(CAPI.ovr_LaunchInvitePanelFlowResult_GetInvitedUsers(o));
 }