github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/gate/router.go (about) 1 package gate 2 3 import ( 4 "game" 5 "login" 6 "msg" 7 ) 8 9 func init() { 10 // login 11 msg.Processor.SetRouter(&msg.C2S_WeChatLogin{}, login.ChanRPC) 12 msg.Processor.SetRouter(&msg.C2S_TokenLogin{}, login.ChanRPC) 13 msg.Processor.SetRouter(&msg.C2S_UsernamePasswordLogin{}, login.ChanRPC) 14 // game 15 msg.Processor.SetRouter(&msg.C2S_SetSystemOn{}, game.ChanRPC) 16 msg.Processor.SetRouter(&msg.C2S_SetLandlordConfig{}, game.ChanRPC) 17 msg.Processor.SetRouter(&msg.C2S_SetUsernamePassword{}, game.ChanRPC) 18 msg.Processor.SetRouter(&msg.C2S_TransferChips{}, game.ChanRPC) 19 msg.Processor.SetRouter(&msg.C2S_SetUserRole{}, game.ChanRPC) 20 21 msg.Processor.SetRouter(&msg.C2S_Heartbeat{}, game.ChanRPC) 22 msg.Processor.SetRouter(&msg.C2S_CreateLandlordRoom{}, game.ChanRPC) 23 msg.Processor.SetRouter(&msg.C2S_EnterRoom{}, game.ChanRPC) 24 msg.Processor.SetRouter(&msg.C2S_GetUserChips{}, game.ChanRPC) 25 msg.Processor.SetRouter(&msg.C2S_SetVIPRoomChips{}, game.ChanRPC) 26 msg.Processor.SetRouter(&msg.C2S_GetCheckInDetail{}, game.ChanRPC) 27 msg.Processor.SetRouter(&msg.C2S_CheckIn{}, game.ChanRPC) 28 msg.Processor.SetRouter(&msg.C2S_GetAllPlayers{}, game.ChanRPC) 29 msg.Processor.SetRouter(&msg.C2S_ExitRoom{}, game.ChanRPC) 30 msg.Processor.SetRouter(&msg.C2S_LandlordPrepare{}, game.ChanRPC) 31 msg.Processor.SetRouter(&msg.C2S_LandlordMatching{}, game.ChanRPC) 32 msg.Processor.SetRouter(&msg.C2S_LandlordBid{}, game.ChanRPC) 33 msg.Processor.SetRouter(&msg.C2S_LandlordGrab{}, game.ChanRPC) 34 msg.Processor.SetRouter(&msg.C2S_LandlordDouble{}, game.ChanRPC) 35 msg.Processor.SetRouter(&msg.C2S_LandlordShowCards{}, game.ChanRPC) 36 msg.Processor.SetRouter(&msg.C2S_LandlordDiscard{}, game.ChanRPC) 37 msg.Processor.SetRouter(&msg.C2S_GetMonthChipsRank{}, game.ChanRPC) 38 msg.Processor.SetRouter(&msg.C2S_GetMonthChipsRankPos{}, game.ChanRPC) 39 msg.Processor.SetRouter(&msg.C2S_GetMonthWinsRank{}, game.ChanRPC) 40 msg.Processor.SetRouter(&msg.C2S_GetMonthWinsRankPos{}, game.ChanRPC) 41 msg.Processor.SetRouter(&msg.C2S_CleanMonthRanks{}, game.ChanRPC) 42 msg.Processor.SetRouter(&msg.C2S_SystemHost{}, game.ChanRPC) 43 msg.Processor.SetRouter(&msg.C2S_ChangeTable{}, game.ChanRPC) 44 msg.Processor.SetRouter(&msg.C2S_GetRedPacketMatchRecord{}, game.ChanRPC) 45 msg.Processor.SetRouter(&msg.C2S_TakeRedPacketMatchPrize{}, game.ChanRPC) 46 msg.Processor.SetRouter(&msg.C2S_DoTask{}, game.ChanRPC) 47 msg.Processor.SetRouter(&msg.C2S_ChangeTask{}, game.ChanRPC) 48 msg.Processor.SetRouter(&msg.C2S_FreeChangeCountDown{}, game.ChanRPC) 49 msg.Processor.SetRouter(&msg.C2S_TakeTaskPrize{}, game.ChanRPC) 50 msg.Processor.SetRouter(&msg.C2S_FakeWXPay{}, game.ChanRPC) 51 msg.Processor.SetRouter(&msg.C2S_FakeAliPay{}, game.ChanRPC) 52 msg.Processor.SetRouter(&msg.C2S_GetCircleLoginCode{}, game.ChanRPC) 53 54 msg.Processor.SetRouter(&msg.C2S_SetRobotData{}, game.ChanRPC) 55 msg.Processor.SetRouter(&msg.C2S_BindSharer{}, game.ChanRPC) 56 msg.Processor.SetRouter(&msg.C2S_ShareRecord{}, game.ChanRPC) 57 msg.Processor.SetRouter(&msg.C2S_CopyExchangeCode{}, game.ChanRPC) 58 msg.Processor.SetRouter(&msg.C2S_Achievement{}, game.ChanRPC) 59 msg.Processor.SetRouter(&msg.C2S_AbleProfit{}, game.ChanRPC) 60 msg.Processor.SetRouter(&msg.C2S_AgentNumbersProfit{}, game.ChanRPC) 61 msg.Processor.SetRouter(&msg.C2S_ReceiveShareProfit{}, game.ChanRPC) 62 msg.Processor.SetRouter(&msg.C2S_GetShareTaskInfo{}, game.ChanRPC) 63 msg.Processor.SetRouter(&msg.C2S_TakenProfit{}, game.ChanRPC) 64 msg.Processor.SetRouter(&msg.C2S_GetCardMa{}, game.ChanRPC) 65 msg.Processor.SetRouter(&msg.C2S_TakeTaskState{}, game.ChanRPC) 66 msg.Processor.SetRouter(&msg.C2S_GetRedpacketTaskCode{}, game.ChanRPC) 67 msg.Processor.SetRouter(&msg.C2S_SubsidyChip{}, game.ChanRPC) 68 msg.Processor.SetRouter(&msg.C2S_IsExistSubsidy{}, game.ChanRPC) 69 msg.Processor.SetRouter(&msg.C2S_DailySign{}, game.ChanRPC) 70 msg.Processor.SetRouter(&msg.C2S_ShareInfo{}, game.ChanRPC) 71 }