1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-07 04:07:13 +08:00

refactor(网络同步): 重构实体同步逻辑和玩家生成流程

- 将EntityBase的health改为@export变量以便同步
- 添加MultiplayerSynchronizer节点处理网络同步
- 修改Wave.next()方法处理EncodedObjectAsID类型
- 添加findPlayer方法通过名称查找玩家
- 调整玩家生成流程,确保UIState.player正确设置
This commit is contained in:
2025-11-14 22:44:26 +08:00
parent 9e0b713ef7
commit 427ca484d1
5 changed files with 36 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func _physics_process(delta):
UIState.setPanel("MakeFeed")
@rpc("authority")
func nextWave(waves: Array[Wave]):
func nextWave(waves: Array):
Wave.next(waves)
func spawnWave():