Skip to content

Commit

Permalink
commit leftover code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jun 10, 2024
1 parent 62be03d commit e15e9bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/PlayerActionPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private Func<PlayerActionEvent> TranslatePlayerActionToControllerAction(GameSess
// https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/patterns#positional-pattern
=> ActionName switch
{
EventNames.AdvanceTimePlayerAction => controller.AdvanceTimeNoWorldEvents,
GameEventName.AdvanceTimePlayerAction => controller.AdvanceTimeNoWorldEvents,
nameof(BuyTransportCapacityPlayerAction) => () => controller.CurrentTurnController.BuyTransportCapacity(TargetId!.Value),
nameof(HireAgentsPlayerAction) => () => controller.CurrentTurnController.HireAgents(TargetId!.Value),
nameof(SackAgentsPlayerAction) => () => controller.CurrentTurnController.SackAgents(Ids!),
Expand Down
2 changes: 1 addition & 1 deletion src/game-lib/Events/GameEventName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ namespace UfoGameLib.Events;
public static class GameEventName
{
public const string AdvanceTimePlayerAction = "AdvanceTimePlayerAction";
public const string WorldEvent = "WorldEvent";
public const string MissionSiteExpiredEvent = "MissionSiteExpiredEvent";
}

0 comments on commit e15e9bf

Please sign in to comment.