This commit is contained in:
2025-09-26 09:31:46 +08:00
parent f5d5939f29
commit 4f486b367f
64 changed files with 758 additions and 153 deletions

View File

@@ -73,6 +73,14 @@ public class NetworkManager {
}
}
/**
* 本地玩家所选角色(仅本地缓存,远程映射存于 playerCharacters
* 供界面或后续同步逻辑查询。
*/
public String getLocalCharacter() {
return localCharacter;
}
public void receiveMessage(String message) {// 解析消息
if (message.startsWith("POS:")) {