internal void UpdateCurrentRoom(NativeRealTimeRoom room) { if (mRoom != null) { mRoom.Dispose(); } mRoom = Misc.CheckNotNull(room); mNativeParticipants = mRoom.Participants().ToDictionary((GooglePlayGames.Native.PInvoke.MultiplayerParticipant p) => p.Id()); mParticipants = (from p in mNativeParticipants.Values select p.AsParticipant()).ToDictionary((Participant p) => p.ParticipantId); }
internal void UpdateCurrentRoom(NativeRealTimeRoom room) { if (mRoom != null) { mRoom.Dispose(); } mRoom = Misc.CheckNotNull(room); mNativeParticipants = mRoom.Participants().ToDictionary(p => p.Id()); mParticipants = mNativeParticipants.Values .Select(p => p.AsParticipant()) .ToDictionary(p => p.ParticipantId); }