package crash import ( "server/game" "server/pb" "strconv" "github.com/liangdas/mqant/module" ) type Sub struct { *game.Module } var Module = func() module.Module { m := game.NewModule(int(pb.ServerType_ServerTypeCrash), game.GameTypeMillion, "Crash", NewTable) m.Sub = &Sub{Module: m} return m } func (s *Sub) RegistHandler() { s.GetServer().RegisterGO("/"+strconv.Itoa(int(pb.CrashProtocol_CrashCashOutReq)), OnCashout) s.GetServer().RegisterGO("/"+strconv.Itoa(int(pb.CrashProtocol_CrashAutoCashoutReq)), OnAutoCashout) }