1
This commit is contained in:
parent
74466e42d8
commit
02086f8467
@ -34,6 +34,13 @@ func (this *player) init(req *pendingLoginRequest){
|
|||||||
this.sessionId = req.msg.GetSessionId()
|
this.sessionId = req.msg.GetSessionId()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *player) onOffline(){
|
||||||
|
this.socket.Reset()
|
||||||
|
if this.room != nil {
|
||||||
|
this.room.OnPlayerOffline(this)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (this *player) CMCreateRoom(hdr *f5.MsgHdr, msg *cs.CMCreateRoom) {
|
func (this *player) CMCreateRoom(hdr *f5.MsgHdr, msg *cs.CMCreateRoom) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,8 +227,5 @@ func (this *playerMgr) SS_WSP_SocketDisconnect(hdr *f5.MsgHdr, msg *ss.SS_WSP_So
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
delete(this.socketHash, hdr.GetSocket())
|
delete(this.socketHash, hdr.GetSocket())
|
||||||
hum.socket.Reset()
|
hum.onOffline()
|
||||||
if hum.room != nil {
|
|
||||||
hum.room.OnPlayerOffline(hum)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user