mirror of
https://github.com/PretendoNetwork/nex-protocols-common-go.git
synced 2025-04-02 11:02:13 -04:00
25 lines
885 B
Go
25 lines
885 B
Go
package match_making_ext
|
|
|
|
import (
|
|
nex "github.com/PretendoNetwork/nex-go"
|
|
match_making_ext "github.com/PretendoNetwork/nex-protocols-go/match-making-ext"
|
|
"github.com/PretendoNetwork/plogger-go"
|
|
)
|
|
|
|
var commonMatchMakingExtProtocol *CommonMatchMakingExtProtocol
|
|
var logger = plogger.NewLogger()
|
|
|
|
type CommonMatchMakingExtProtocol struct {
|
|
*match_making_ext.MatchMakingExtProtocol
|
|
server *nex.Server
|
|
}
|
|
|
|
// NewCommonMatchmakeExtensionProtocol returns a new CommonMatchmakeExtensionProtocol
|
|
func NewCommonMatchMakingExtProtocol(server *nex.Server) *CommonMatchMakingExtProtocol {
|
|
MatchMakingExtProtocol := match_making_ext.NewMatchMakingExtProtocol(server)
|
|
commonMatchMakingExtProtocol = &CommonMatchMakingExtProtocol{MatchMakingExtProtocol: MatchMakingExtProtocol, server: server}
|
|
|
|
MatchMakingExtProtocol.EndParticipation(endParticipation)
|
|
|
|
return commonMatchMakingExtProtocol
|
|
}
|