This commit is contained in:
aozhiwei 2023-09-15 12:10:17 +08:00
parent ed9be693fc
commit 4ce967fb90

View File

@ -13,7 +13,6 @@ import (
type roomMgr struct {
cs.MsgHandlerImpl
currRoomId int32
currRoomIdx int64
idHash map[string]*room
roomList q5.ListHead
}
@ -22,7 +21,6 @@ func (this *roomMgr) Init() {
this.idHash = make(map[string]*room)
this.roomList.Init(nil)
this.currRoomId = 10000
this.currRoomIdx = 10000
}
func (this *roomMgr) UnInit() {
@ -127,6 +125,5 @@ func (this *roomMgr) genRoomId() int32 {
}
func (this *roomMgr) genRoomIdx() int64 {
this.currRoomIdx++
return this.currRoomIdx
return f5.GetApp().NewUuid()
}