added db to handlerTable

This commit is contained in:
stratic-dev
2024-10-15 04:46:11 +01:00
parent 0fa7f37743
commit e9ae953993
45 changed files with 1113 additions and 1493 deletions

View File

@@ -3,9 +3,11 @@ package channelserver
import (
"erupe-ce/network"
"erupe-ce/network/mhfpacket"
"github.com/jmoiron/sqlx"
)
type handlerFunc func(s *Session, p mhfpacket.MHFPacket)
type handlerFunc func(s *Session, db *sqlx.DB, p mhfpacket.MHFPacket)
var handlerTable map[network.PacketID]handlerFunc