优化连接

This commit is contained in:
kercylan98
2023-05-06 15:53:31 +08:00
parent dae2982090
commit 41b0417338
18 changed files with 21 additions and 305 deletions
-4
View File
@@ -19,10 +19,6 @@ func (slf *Player[ID]) GetID() ID {
return slf.id
}
func (slf *Player[ID]) GetConnID() string {
return slf.conn.GetID()
}
// Send 向该玩家发送数据
func (slf *Player[ID]) Send(packet []byte) error {
return slf.conn.Write(packet)