/// <summary> /// Fonction appelée quand l'utilisateur veut aller sur la page du jeu actuel. /// </summary> /// <param name="parameters">Id du jeu</param> void GoToActualGame(object parameters) { if (this.IsInGame == true) { var navigationParams = new NavigationParameters { { "user", User }, { "allInfo", AllInfo.FirstOrDefault() } }; this.NavigationService.NavigateAsync(nameof(GamePage), navigationParams); } }
private static void ShowBountyProps(Mobile from, object targeted) { var pm = targeted as PlayerMobile; if (pm == null) { from.SendMessage("Only players can have bounties."); return; } var bounty = AllInfo.FirstOrDefault(x => x.BountyPlayer == pm); if (bounty == null) { from.SendMessage("That player has no bounty."); return; } from.SendGump(new PropertiesGump(from, bounty)); }