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); }
public static Request <Models.Room> CreateAndJoinPrivate(RoomJoinPolicy joinPolicy, uint maxUsers, bool subscribeToNotifications = false) { if (Core.IsInitialized()) { return(new Request <Models.Room>(CAPI.ovr_Room_CreateAndJoinPrivate(joinPolicy, maxUsers, subscribeToNotifications))); } return(null); }
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); }
public static Request <Models.Room> UpdatePrivateRoomJoinPolicy(UInt64 roomID, RoomJoinPolicy newJoinPolicy) { if (Core.IsInitialized()) { return(new Request <Models.Room>(CAPI.ovr_Room_UpdatePrivateRoomJoinPolicy(roomID, newJoinPolicy))); } return(null); }
public void SetCreateRoomJoinPolicy(RoomJoinPolicy value) { CAPI.ovr_MatchmakingOptions_SetCreateRoomJoinPolicy(Handle, value) : }