Replace Hostility proto with Scala Hostility enum (#5438)

* Replace Hostility proto with Scala Hostility enum

This removes direct proto imports from library/ for the Hostility type:

- FactionUtils.hostilityStatus now returns Scala Hostility
- ArmyStats.hostility now uses Scala Hostility type
- AvailableAttackDecisionCommandFactory no longer imports proto
- AvailableFreeForAllDecisionCommandFactory no longer imports proto
- AttackDecisionCommandChooser uses Hostility.Enemy instead of proto
- BattleFilter no longer needs protoToScalaHostility converter
- AvailableCommandConverter uses HostilityConverter.toProto

This completes Phase 8b of the deproto migration, reducing direct
proto imports in library/ from 8 files to 4 (LLM prompt generators).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix AvailableCommandConverterTest to use Scala Hostility enum

Update test to use net.eagle0.eagle.model.state.Hostility.Self
instead of proto net.eagle0.common.hostility.Hostility.SELF_HOSTILITY.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 07:35:38 -08:00
committed by GitHub
co-authored by Claude Opus 4.5
parent 2d58f0231c
commit 916501cbf8
18 changed files with 39 additions and 52 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
# BUILD dependency baseline - updated Sun Jan 18 15:45:56 PST 2026
# BUILD dependency baseline - updated Sun Jan 18 16:17:22 PST 2026
# Do not increase these numbers - only decrease!
library_proto_deps=167