Exemplo n.º 1
0
func PKT_MSG(reader *packet.Packet) (tbl MSG, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_data, err = reader.ReadBytes()
	checkErr(err)
	return
}
Exemplo n.º 2
0
func PKT_atk_player_rst_req(reader *packet.Packet) (tbl atk_player_rst_req, err error) {
	tbl.F_rst, err = reader.ReadS32()
	checkErr(err)
	tbl.F_protect_time, err = reader.ReadS32()
	checkErr(err)
	return
}
Exemplo n.º 3
0
func PKT_user_archives_info(reader *packet.Packet) (tbl user_archives_info, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_archives, err = reader.ReadString()
	checkErr(err)
	return
}
Exemplo n.º 4
0
func PKT_GETLIST(reader *packet.Packet) (tbl GETLIST, err error) {
	tbl.F_A, err = reader.ReadS32()
	checkErr(err)
	tbl.F_B, err = reader.ReadS32()
	checkErr(err)
	return
}
Exemplo n.º 5
0
func PKT_ID_SCORE(reader *packet.Packet) (tbl ID_SCORE, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_score, err = reader.ReadS32()
	checkErr(err)
	return
}
Exemplo n.º 6
0
func PKT_seed_info(reader *packet.Packet) (tbl S_seed_info, err error) {
	tbl.F_client_send_seed, err = reader.ReadS32()
	checkErr(err)

	tbl.F_client_receive_seed, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 7
0
func PKT_error_info(reader *packet.Packet) (tbl S_error_info, err error) {
	tbl.F_code, err = reader.ReadS32()
	checkErr(err)

	tbl.F_msg, err = reader.ReadString()
	checkErr(err)

	return
}
Exemplo n.º 8
0
func PKT_PROTECT(reader *packet.Packet) (tbl PROTECT, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)

	tbl.F_protecttime, err = reader.ReadS64()
	checkErr(err)

	return
}
Exemplo n.º 9
0
func PKT_user_login_info(reader *packet.Packet) (tbl user_login_info, err error) {
	tbl.F_mac_addr, err = reader.ReadString()
	checkErr(err)
	tbl.F_client_version, err = reader.ReadS32()
	checkErr(err)
	tbl.F_new_user, err = reader.ReadByte()
	checkErr(err)
	tbl.F_user_name, err = reader.ReadString()
	checkErr(err)
	return
}
Exemplo n.º 10
0
func PKT_SET_ADDS_REQ(reader *packet.Packet) (tbl SET_ADDS_REQ, err error) {
	tbl.F_key, err = reader.ReadString()
	checkErr(err)

	tbl.F_value, err = reader.ReadS32()
	checkErr(err)

	tbl.F_lang, err = reader.ReadString()
	checkErr(err)

	return
}
Exemplo n.º 11
0
func PKT_LOGIN_REQ(reader *packet.Packet) (tbl LOGIN_REQ, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)

	tbl.F_group, err = reader.ReadS32()
	checkErr(err)

	tbl.F_groupmsgmax, err = reader.ReadU32()
	checkErr(err)

	return
}
Exemplo n.º 12
0
func PKT_ADD_EVENT(reader *packet.Packet) (tbl ADD_EVENT, err error) {
	tbl.F_type, err = reader.ReadS16()
	checkErr(err)

	tbl.F_user_id, err = reader.ReadS32()
	checkErr(err)

	tbl.F_timeout, err = reader.ReadS64()
	checkErr(err)

	tbl.F_params, err = reader.ReadBytes()
	checkErr(err)

	return
}
Exemplo n.º 13
0
func PKT_user_snapshot(reader *packet.Packet) (tbl user_snapshot, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_name, err = reader.ReadString()
	checkErr(err)
	tbl.F_rank, err = reader.ReadS32()
	checkErr(err)
	tbl.F_archives, err = reader.ReadString()
	checkErr(err)
	tbl.F_protect_time, err = reader.ReadS32()
	checkErr(err)
	tbl.F_last_save_time, err = reader.ReadS32()
	checkErr(err)
	tbl.F_server_time, err = reader.ReadS32()
	checkErr(err)
	return
}
Exemplo n.º 14
0
func PKT_INFO(reader *packet.Packet) (tbl INFO, err error) {
	tbl.F_flag, err = reader.ReadBool()
	checkErr(err)

	tbl.F_id, err = reader.ReadS32()
	checkErr(err)

	tbl.F_state, err = reader.ReadByte()
	checkErr(err)

	tbl.F_score, err = reader.ReadS32()
	checkErr(err)

	tbl.F_protecttime, err = reader.ReadS64()
	checkErr(err)

	return
}
Exemplo n.º 15
0
func PKT_pve_list_item(reader *packet.Packet) (tbl pve_list_item, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_name, err = reader.ReadString()
	checkErr(err)
	tbl.F_rank, err = reader.ReadS32()
	checkErr(err)
	tbl.F_state, err = reader.ReadS32()
	checkErr(err)
	tbl.F_protect_time, err = reader.ReadS32()
	checkErr(err)
	return
}
Exemplo n.º 16
0
func PKT_INFO(reader *packet.Packet) (tbl INFO, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_state, err = reader.ReadS32()
	checkErr(err)
	tbl.F_score, err = reader.ReadS32()
	checkErr(err)
	tbl.F_clan, err = reader.ReadS32()
	checkErr(err)
	tbl.F_name, err = reader.ReadString()
	checkErr(err)
	return
}
Exemplo n.º 17
0
func PKT_user_login_info(reader *packet.Packet) (tbl user_login_info, err error) {
	tbl.F_login_way, err = reader.ReadS32()
	checkErr(err)

	tbl.F_open_udid, err = reader.ReadString()
	checkErr(err)

	tbl.F_client_certificate, err = reader.ReadString()
	checkErr(err)

	tbl.F_client_version, err = reader.ReadS32()
	checkErr(err)

	tbl.F_user_lang, err = reader.ReadString()
	checkErr(err)

	tbl.F_app_id, err = reader.ReadString()
	checkErr(err)

	tbl.F_os_version, err = reader.ReadString()
	checkErr(err)

	tbl.F_device_name, err = reader.ReadString()
	checkErr(err)

	tbl.F_device_id_type, err = reader.ReadS32()
	checkErr(err)

	tbl.F_login_ip, err = reader.ReadString()
	checkErr(err)

	return
}
Exemplo n.º 18
0
func PKT_CHGSCORE(reader *packet.Packet) (tbl CHGSCORE, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)
	tbl.F_oldscore, err = reader.ReadS32()
	checkErr(err)
	tbl.F_newscore, err = reader.ReadS32()
	checkErr(err)
	return
}
Exemplo n.º 19
0
func PKT_user_snapshot(reader *packet.Packet) (tbl user_snapshot, err error) {
	tbl.F_uid, err = reader.ReadS32()
	checkErr(err)

	tbl.F_name, err = reader.ReadString()
	checkErr(err)

	tbl.F_level, err = reader.ReadS32()
	checkErr(err)

	tbl.F_current_exp, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 20
0
func PKT_auto_id(reader *packet.Packet) (tbl auto_id, err error) {
	tbl.F_id, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 21
0
func PKT_INT(reader *packet.Packet) (tbl INT, err error) {
	tbl.F_v, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 22
0
func PKT_EVENT_ID(reader *packet.Packet) (tbl EVENT_ID, err error) {
	tbl.F_event_id, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 23
0
func PKT_CANCEL_EVENT(reader *packet.Packet) (tbl CANCEL_EVENT, err error) {
	tbl.F_event_id, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 24
0
func PKT_LOGIN_ACK(reader *packet.Packet) (tbl LOGIN_ACK, err error) {
	tbl.F_success, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 25
0
func PKT_command_result_pack(reader *packet.Packet) (tbl command_result_pack, err error) {
	tbl.F_rst, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 26
0
func PKT_user_snapshot(reader *packet.Packet) (tbl S_user_snapshot, err error) {
	tbl.F_uid, err = reader.ReadS32()
	checkErr(err)

	return
}
Exemplo n.º 27
0
func PKT_KEY(reader *packet.Packet) (tbl KEY, err error) {
	tbl.F_E, err = reader.ReadS32()
	checkErr(err)

	return
}