fix: 修复 room.NewManager 没有初始化 rp 字段的问题
This commit is contained in:
parent
5e26467dee
commit
5c3c9592c5
|
@ -13,6 +13,7 @@ func NewManager[PID comparable, P game.Player[PID], R Room]() *Manager[PID, P, R
|
||||||
rooms: concurrent.NewBalanceMap[int64, *info[PID, P, R]](),
|
rooms: concurrent.NewBalanceMap[int64, *info[PID, P, R]](),
|
||||||
players: concurrent.NewBalanceMap[PID, P](),
|
players: concurrent.NewBalanceMap[PID, P](),
|
||||||
pr: concurrent.NewBalanceMap[PID, map[int64]struct{}](),
|
pr: concurrent.NewBalanceMap[PID, map[int64]struct{}](),
|
||||||
|
rp: concurrent.NewBalanceMap[int64, map[PID]struct{}](),
|
||||||
}
|
}
|
||||||
|
|
||||||
return manager
|
return manager
|
||||||
|
|
Loading…
Reference in New Issue