tcp socket协议分割解析优化

This commit is contained in:
flswld
2023-04-14 22:07:41 +08:00
parent ae5f2809bf
commit b6be98c58c
7 changed files with 89 additions and 72 deletions
+3
View File
@@ -333,6 +333,9 @@ func (s *Scene) RemoveGroupSuite(groupId uint32, suiteId uint8) {
s.DestroyEntity(entity.id)
}
delete(group.suiteMap, suiteId)
if len(group.suiteMap) == 0 {
delete(s.groupMap, groupId)
}
}
type Group struct {