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