msg_register.go
5.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package game
import (
"World/network"
pb "World/pb"
)
func Init() {
network.RegisterMessage(uint16(pb.MSGID_MsgID_Logon_Request), pb.RequestLogon{}, LoginHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ConnClose_Notice), pb.NoticeConnectionClose{}, ConnCloseHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_CreateClub_Request), pb.RequestCreateClub{}, CreateClubHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ClubSnapshotList_Request), pb.RequestClubSnapshotList{}, ClubSnapshotListHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_JoinClub_Request), pb.RequestJoinClub{}, JoinClubHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_JoinClub_Reply), pb.ReplyJoinClub{}, JoinClubReplyHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_LeaveClub_Request), pb.RequestLeaveClub{}, LeaveClubHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ClubCurrentBoard_Request), pb.RequestClubCurrentBoard{}, ClubCurrentBoardHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ClubMemberSnapshotList_Request), pb.RequestClubMemberSnapshotList{}, ClubMemberSnapshotListHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ModifyClubMember_Request), pb.RequestModifyClubMember{}, ModifyClubMemberHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ModifyClubInfo_Request), pb.RequestModifyClubInfo{}, ModifyClubInfoHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_SearchClubInfo_Request), pb.RequestSearchClubInfo{}, SearchClubInfoHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ClubCreaterInfo_Request), pb.RequestClubCreaterInfo{}, ClubCreaterInfoHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_SendMsg_Request), pb.RequestSendMsg{}, SendMsgHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_GetUserData_Request), pb.RequestGetUserData{}, GetUserDataHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_GetJackpotData_Request), pb.RequestGetJackpotData{}, GetJackpotDataHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_JackpotSetting_Request), pb.RequestJackpotSetting{}, JackpotSettingHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_SetJackpot_Request), pb.RequestSetJackpot{}, SetJackpotHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_RecoverJackpotSetting_Request), pb.RequestRecoverJackpotSetting{}, RecoverJackpotSettingHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_CurrentRoomJackpot_Request), pb.RequestCurrentRoomJackpot{}, CurrentRoomJackpotHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_JackpotAwardRecord_Request), pb.RequestJackpotAwardRecord{}, JackpotAwardRecordHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_JackpotInjectAmount_Request), pb.RequestJackpotInjectAmount{}, JackpotInjectAmountHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_HeartBeat_Request), pb.RequestHeartBeat{}, HeartBeatHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_CreateAlliance_Request), pb.RequestCreateAlliance{}, CreateAllianceHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_LeaveAlliance_Request), pb.RequestLeaveAlliance{}, LeaveAllianceHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_SearchAlliance_Request), pb.RequestSearchAllianceInfo{}, SearchAllianceHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_KickoffAllianceMember_Request), pb.RequestKickoffAllianceMember{}, KickoffAllianceMemberHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_AllianceList_Request), pb.RequestAllianceList{}, AllianceListHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_JoinAlliance_Request), pb.RequestJoinAlliance{}, JoinAllianceHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_JoinAllianceReply_To_World), pb.ReplyJoinAllianceToWorld{}, JoinAllianceReplyHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_AddRemarks_Request), pb.RequestAddRemarks{}, AddRemarksHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_GetAllRemarks_Request), pb.RequestGetAllRemarks{}, GetAllRemarksHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ClearAllianceMaxBuyinLimit_Request), pb.RequestClearAllianceMaxBuyinLimit{}, ClearAllianceMaxBuyinLimitHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_SetAllianceMaxBuyinLimit_Request), pb.RequestSetAllianceMaxBuyinLimit{}, SetAllianceMaxBuyinLimitHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_SetAllianceControlBuyin_Request), pb.RequestSetAllianceControlBuyin{}, SetAllianceControlBuyinHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_FairPlay_Report_Request), pb.RequestFairPlayReport{}, FairPlayReportHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_DeviceInfo_Report_Request), pb.RequestDeviceInfoReport{}, DeviceInfoReportHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_GetIncome_Request), pb.RequestGetIncome{}, GetIncomeHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_GetUserClubGrantInfo_Request), pb.RequestGetUserClubGrantInfo{}, GetUserClubGrantInfoHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_GetUserMailListInfo_Request), pb.RequestGetUserMailList{}, GetUserMailListHandler)
network.RegisterMessage(uint16(pb.MSGID_MsgID_ReadAndFetchOneMail_Request), pb.RequestFetchOneMail{}, FetchOneMailHandler)
}