1
This commit is contained in:
parent
ed9be693fc
commit
4ce967fb90
@ -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
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user