예제 #1
0
 void WatchReplay()
 {
     if (selectedReplay != null && ReplayUtils.PromptConfirmReplayCompatibility(selectedReplay))
     {
         cancelLoadingReplays = true;
         Game.JoinReplay(selectedReplay.FilePath);
     }
 }
예제 #2
0
        void WatchReplay()
        {
            if (selectedReplay != null && ReplayUtils.PromptConfirmReplayCompatibility(selectedReplay))
            {
                cancelLoadingReplays = true;

                DiscordService.UpdateStatus(DiscordState.WatchingReplay);

                Game.JoinReplay(selectedReplay.FilePath);
            }
        }
예제 #3
0
        void WatchReplay()
        {
            Action startReplay = () =>
            {
                Game.JoinReplay(selectedReplay.FilePath);
                Ui.CloseWindow();
                onStart();
            };

            if (selectedReplay != null && ReplayUtils.PromptConfirmReplayCompatibility(selectedReplay))
            {
                startReplay();
            }
        }