コード例 #1
0
 public void OnInteracted(InteractedEventArgs ev)
 {
     if (Tracking.PlayersInvisibleByCommand.Contains(ev.Player))
     {
         Tracking.PlayersInvisibleByCommand.Remove(ev.Player);
     }
 }
コード例 #2
0
        private void AttractorLoopPlayer_Interacted(object sender, InteractedEventArgs args)
        {
            // get the locator from app.xaml
            ViewModels.ViewModelLocator Locator = Application.Current.Resources["Locator"] as ViewModels.ViewModelLocator;

            // use it to get the navigation service
            NavigationServiceEx NavigationService = Locator?.NavigationService;

            // navigate
            NavigationService?.Navigate(typeof(FlipViewViewModel).FullName);
        }
コード例 #3
0
        private void AttractorLoopPlayer_Interacted(object sender, InteractedEventArgs args)
        {
            // get the locator from app.xaml
            ViewModels.ViewModelLocator Locator = Application.Current.Resources["Locator"] as ViewModels.ViewModelLocator;

            // use it to get the navigation service
            NavigationServiceEx NavigationService = Locator?.NavigationService;

            // navigate to the starting page - is choose pah enabled?
            if ((ConfigurationService.Current.IsLoaded) && (ConfigurationService.Current.Configuration.IsChoosePathPageEnabled))
            {
                // go to the choose path page
                NavigationService?.Navigate(typeof(ChoosePathViewModel).FullName);
            }
            else
            {
                // no, so go to the intro hero page
                NavigationService?.Navigate(typeof(FlipViewViewModel).FullName);
            }
        }
コード例 #4
0
ファイル: Player.cs プロジェクト: gamehunt/EXILED
 /// <summary>
 /// Invoked after a player interacted with something.
 /// </summary>
 /// <param name="ev">The <see cref="InteractedEventArgs"/> instance.</param>
 public static void OnInteracted(InteractedEventArgs ev) => Interacted.InvokeSafely(ev);
コード例 #5
0
 internal void OnInteracted(InteractedEventArgs ev)
 {
     //if (Instance.Config.GhostInteract || !GhostList.Contains(ev.Player)) return;
 }