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