S3-01 + S3-02

This commit is contained in:
2026-03-09 17:50:49 +08:00
parent 793a87c171
commit 88641f17b0
19 changed files with 838 additions and 46 deletions
@@ -261,8 +261,18 @@ namespace GeometryTD.UI
return;
}
if (!_useCase.TryAddParticipantTower(args.TowerItemId))
ParticipantTowerAssignResult result = _useCase.TryAddParticipantTower(args.TowerItemId);
if (result == null || !result.IsSuccess)
{
if (result != null)
{
Log.Warning(
"RepoFormController denied participant assignment. TowerId={0}, FailureReason={1}, ValidationFailureReason={2}.",
result.TowerInstanceId,
result.FailureReason,
result.ValidationFailureReason);
}
return;
}
@@ -33,7 +33,7 @@ namespace GeometryTD.UI
out _);
}
public bool TryAddParticipantTower(long towerItemId)
public ParticipantTowerAssignResult TryAddParticipantTower(long towerItemId)
{
if (GameEntry.PlayerInventory == null)
{