| | 1 | | using System; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | public class TrackedSceneInfo : IDisposable |
| | 5 | | { |
| | 6 | | IFriendTrackerHandler view; |
| | 7 | |
|
| | 8 | | public event Action<TrackedSceneInfo> OnListenerDisposed; |
| | 9 | |
|
| 0 | 10 | | public TrackedSceneInfo(IFriendTrackerHandler 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 ContainCoords(Vector2Int coords) { return view.ContainCoords(coords); } |
| | 17 | |
|
| 0 | 18 | | public void Dispose() { OnListenerDisposed?.Invoke(this); } |
| | 19 | | } |