refactor(channelserver): extract Raviente struct and methods into raviente.go

Consolidate Raviente-related code from sys_channel_server.go and
handlers_register.go into a dedicated file for better organization.
This commit is contained in:
Houmgaor
2026-02-18 19:38:22 +01:00
parent ed2a9597f2
commit 264b0ced6b
3 changed files with 118 additions and 109 deletions

View File

@@ -3,7 +3,6 @@ package channelserver
import (
"erupe-ce/common/byteframe"
"erupe-ce/network/mhfpacket"
"strings"
)
func handleMsgMhfRegisterEvent(s *Session, p mhfpacket.MHFPacket) {
@@ -140,13 +139,4 @@ func (s *Session) notifyRavi() {
}
}
func (s *Server) getRaviSemaphore() *Semaphore {
for _, semaphore := range s.semaphore {
if strings.HasPrefix(semaphore.name, "hs_l0") && strings.HasSuffix(semaphore.name, "3") {
return semaphore
}
}
return nil
}
func handleMsgSysNotifyRegister(s *Session, p mhfpacket.MHFPacket) {}