-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into 276-spec-info
# Conflicts: # src/Modules/SpectatorCamModeModule/Interfaces/ISpectatorCamModeService.cs # src/Modules/SpectatorCamModeModule/Services/SpectatorCamModeService.cs # src/Modules/SpectatorCamModeModule/Templates/Scripts/SpectatorMode.ms # src/Modules/SpectatorCamModeModule/Templates/SpectatorMode.mt # src/Modules/SpectatorTargetInfoModule/Controllers/SpectatorTargetInfoEventController.cs # src/Modules/SpectatorTargetInfoModule/Templates/Scripts/SpectatorTargetInfo.ms # src/Modules/SpectatorTargetInfoModule/Templates/SpectatorTargetInfo.mt # tests/Modules/SpectatorCamModeModule.Tests/Services/SpectatorCamModeServiceTests.cs # tests/Modules/SpectatorTargetInfoModule.Tests/Controllers/SpectatorTargetEventControllerTests.cs # tests/Modules/TeamChatModule.Tests/TeamChatModule.Tests.csproj
- Loading branch information
Showing
7 changed files
with
56 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,4 @@ EvoSC/ext_plugins/* | |
docker-compose.yml | ||
global.json | ||
.env | ||
nuget.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Modules/SpectatorCamModeModule/Controllers/SpectatorCamModeEventController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using EvoSC.Common.Controllers; | ||
using EvoSC.Common.Controllers.Attributes; | ||
using EvoSC.Common.Controllers.Context; | ||
using EvoSC.Common.Events.Attributes; | ||
using EvoSC.Common.Remote; | ||
using EvoSC.Common.Remote.EventArgsModels; | ||
using EvoSC.Modules.Official.SpectatorCamModeModule.Interfaces; | ||
|
||
namespace EvoSC.Modules.Official.SpectatorCamModeModule.Controllers; | ||
|
||
[Controller] | ||
public class SpectatorCamModeEventController(ISpectatorCamModeService camModeService) | ||
: EvoScController<EventControllerContext> | ||
{ | ||
[Subscribe(ModeScriptEvent.EndRoundStart)] | ||
public Task OnEndRoundStartAsync(object sender, RoundEventArgs eventArgs) => | ||
camModeService.HideCamModeWidgetAsync(); | ||
Check failure on line 17 in src/Modules/SpectatorCamModeModule/Controllers/SpectatorCamModeEventController.cs GitHub Actions / build_and_test
Check failure on line 17 in src/Modules/SpectatorCamModeModule/Controllers/SpectatorCamModeEventController.cs GitHub Actions / build_and_test
|
||
|
||
[Subscribe(ModeScriptEvent.StartRoundStart)] | ||
public Task OnStartRoundStartAsync(object sender, RoundEventArgs eventArgs) => | ||
camModeService.SendPersistentCamModeWidgetAsync(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters