Beispiel #1
0
//初始化消息ID和消息类型的对应关系
func init() {
	protos.SetMsg(ID_ConnectSuccessS2C, ConnectSuccessS2C{})
	protos.SetMsg(ID_AgainConnectC2S, AgainConnectC2S{})
	protos.SetMsg(ID_AgainConnectS2C, AgainConnectS2C{})

	protos.SetMsg(ID_OtherLoginS2C, OtherLoginS2C{})
	protos.SetMsg(ID_ErrorMsgS2C, ErrorMsgS2C{})
	protos.SetMsg(ID_UserLoginC2S, UserLoginC2S{})
	protos.SetMsg(ID_UserLoginS2C, UserLoginS2C{})
	protos.SetMsg(ID_GetUserInfoC2S, GetUserInfoC2S{})
	protos.SetMsg(ID_GetUserInfoS2C, GetUserInfoS2C{})
}
Beispiel #2
0
//初始化消息ID和消息类型的对应关系
func init() {
	protos.SetMsg(ID_System_ConnectDBServerC2S, System_ConnectDBServerC2S{})
	protos.SetMsg(ID_System_ConnectDBServerS2C, System_ConnectDBServerS2C{})
	protos.SetMsg(ID_System_ConnectTransferServerC2S, System_ConnectTransferServerC2S{})
	protos.SetMsg(ID_System_ConnectTransferServerS2C, System_ConnectTransferServerS2C{})
	protos.SetMsg(ID_System_ClientSessionOnlineC2S, System_ClientSessionOnlineC2S{})
	protos.SetMsg(ID_System_ClientSessionOfflineC2S, System_ClientSessionOfflineC2S{})
	protos.SetMsg(ID_System_ClientLoginSuccessC2S, System_ClientLoginSuccessC2S{})
}
Beispiel #3
0
//初始化消息ID和消息类型的对应关系
func init() {
	protos.SetMsg(ID_DB_User_LoginC2S, DB_User_LoginC2S{})
	protos.SetMsg(ID_DB_User_LoginS2C, DB_User_LoginS2C{})
	protos.SetMsg(ID_DB_User_UpdateLastLoginTimeC2S, DB_User_UpdateLastLoginTimeC2S{})
}
Beispiel #4
0
//初始化消息ID和消息类型的对应关系
func init() {
	protos.SetMsg(ID_Log_CommonLogC2S, Log_CommonLogC2S{})
}