fix: 修复 spec 与实现的多处差异

- CombatEvent Hit 消息的 Damage 字段改为传递 configuration.DamagePerShot
- SyncSequenceTracker MoveInput streamKey 改为只按 playerId 追踪
- 登录成功后新增 AuthoritativeCombatState bootstrap 逻辑
- 更新 network-gameplay-message-types spec 字段命名以匹配实际 proto 定义
This commit is contained in:
SepComet
2026-04-07 20:42:18 +08:00
parent 2c46012800
commit b7c003f227
4 changed files with 46 additions and 7 deletions
@@ -41,7 +41,7 @@ namespace Network.NetworkApplication
case MessageType.MoveInput:
{
var input = MoveInput.Parser.ParseFrom(payload);
streamKey = $"input:{Normalize(sender)}:{input.PlayerId}";
streamKey = $"input:{input.PlayerId}";
sequence = input.Tick;
return true;
}