private void SubscribeToSearchEvents() { ViewModel.SearchInCooldown += GameManagerViewModelOnSearchInCooldown; ViewModel.SearchInventoryFull += GameManagerViewModelOnSearchInventoryFull; ViewModel.SearchOutOfRange += GameManagerViewModelOnSearchOutOfRange; ViewModel.SearchSuccess += GameManagerViewModelOnSearchSuccess; // Add also handlers to report which items the user gained after the animation SpinPokestopImage.Completed += (s, e) => ShowGatheredItemsMenu.Begin(); }
private void SubscribeToSearchEvents() { ViewModel.SearchInCooldown += GameManagerViewModelOnSearchInCooldown; ViewModel.SearchInventoryFull += GameManagerViewModelOnSearchInventoryFull; ViewModel.SearchOutOfRange += GameManagerViewModelOnSearchOutOfRange; ViewModel.SearchSuccess += GameManagerViewModelOnSearchSuccess; // Add also handlers to report which items the user gained after the animation SpinPokestopImage.Completed += (s, e) => ShowGatheredItemsMenu.Begin(); ViewModel.ShowModifierDetails += GameManagerViewModelOnShowModifierDetails; ViewModel.HideModifierDetails += GameManagerViewModelOnHideModifierDetails; ViewModel.AddModifierSuccess += GameManagerViewModelOnAddModifierTooFarAwayAddModifierSuccess; ViewModel.AddModifierTooFarAway += GameManagerViewModelOnAddModifierTooFarAway; ViewModel.AddModifierAlreadyHasModifier += GameManagerViewModelOnAddModifierFortAlreadyHasModifier; ViewModel.AddModifierNoItemInInventory += GameManagerViewModelOnAddModifierNoItemInInventory; }