玩家接口优化

This commit is contained in:
kercylan98 2023-05-11 12:28:26 +08:00
parent dbdff6ca5d
commit e11168b984
1 changed files with 5 additions and 0 deletions

View File

@ -28,3 +28,8 @@ func (slf *Player[ID]) Send(packet []byte) error {
func (slf *Player[ID]) Close() {
slf.conn.Close()
}
// Write 写入数据
func (slf *Player[ID]) Write(packet []byte) error {
return slf.conn.Write(packet)
}