refactor: 调整 server 数据包相关处理函数的接收参数不再为 server.Packet,同时移除 server.Packet

This commit is contained in:
kercylan98
2023-08-23 19:29:55 +08:00
parent 4785c60c5e
commit 4850dd4aa3
31 changed files with 614 additions and 590 deletions

View File

@@ -34,7 +34,7 @@ func (slf *Player[ID]) UseConn(conn *server.Conn) {
}
// Send 向该玩家发送数据
func (slf *Player[ID]) Send(packet server.Packet) {
func (slf *Player[ID]) Send(packet []byte) {
slf.conn.Write(packet)
}