玩家接口优化
This commit is contained in:
parent
dbdff6ca5d
commit
e11168b984
|
@ -28,3 +28,8 @@ func (slf *Player[ID]) Send(packet []byte) error {
|
||||||
func (slf *Player[ID]) Close() {
|
func (slf *Player[ID]) Close() {
|
||||||
slf.conn.Close()
|
slf.conn.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Write 写入数据
|
||||||
|
func (slf *Player[ID]) Write(packet []byte) error {
|
||||||
|
return slf.conn.Write(packet)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue