| | 1 | | using System; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | public class TrackedRealmInfo : IDisposable |
| | 5 | | { |
| | 6 | | IRealmTrackerHandler view; |
| | 7 | |
|
| | 8 | | public event Action<TrackedRealmInfo> OnListenerDisposed; |
| | 9 | |
|
| 0 | 10 | | public TrackedRealmInfo(IRealmTrackerHandler view) { this.view = view; } |
| | 11 | |
|
| 0 | 12 | | public void OnFriendAdded(UserProfile profile, Color backgroundColor) { view.OnFriendAdded(profile, backgroundColor) |
| | 13 | |
|
| 0 | 14 | | public void OnFriendRemoved(UserProfile profile) { view.OnFriendRemoved(profile); } |
| | 15 | |
|
| 0 | 16 | | public bool ContainRealm(string serverName) { return view.ContainRealm(serverName); } |
| | 17 | |
|
| 0 | 18 | | public void Dispose() { OnListenerDisposed?.Invoke(this); } |
| | 19 | | } |