internal GooglePlayGames.Native.PInvoke.MultiplayerParticipant ParticipantWithId(string participantId) { IEnumerator <GooglePlayGames.Native.PInvoke.MultiplayerParticipant> enumerator = this.Participants().GetEnumerator(); try { while (enumerator.MoveNext()) { GooglePlayGames.Native.PInvoke.MultiplayerParticipant current = enumerator.Current; if (current.Id().Equals(participantId)) { return(current); } current.Dispose(); } } finally { if (enumerator == null) { } enumerator.Dispose(); } return(null); }
internal GooglePlayGames.Native.PInvoke.MultiplayerParticipant Inviter() { GooglePlayGames.Native.PInvoke.MultiplayerParticipant participant = new GooglePlayGames.Native.PInvoke.MultiplayerParticipant(GooglePlayGames.Native.Cwrapper.MultiplayerInvitation.MultiplayerInvitation_InvitingParticipant(base.SelfPtr())); if (!participant.Valid()) { participant.Dispose(); return(null); } return(participant); }
internal GooglePlayGames.Native.PInvoke.MultiplayerParticipant PendingParticipant() { GooglePlayGames.Native.PInvoke.MultiplayerParticipant participant = new GooglePlayGames.Native.PInvoke.MultiplayerParticipant(GooglePlayGames.Native.Cwrapper.TurnBasedMatch.TurnBasedMatch_PendingParticipant(base.SelfPtr())); if (!participant.Valid()) { participant.Dispose(); return(null); } return(participant); }