新增定时器组关闭接口

This commit is contained in:
duanhf2012
2024-09-18 11:51:17 +08:00
parent 22fe00173b
commit 84ab0cb84a

View File

@@ -196,3 +196,8 @@ func (fg *FrameGroup) CancelTimer(timerID FrameTimerID) {
fg.preGlobalFrameNum = 0
fg.refreshMinFrame()
}
func (fg *FrameGroup) Close(){
fg.ft.removeGroup(fg.groupID, fg.preGlobalFrameNum)
delete(fg.ft.mapGroup,fg.groupID)
}