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 }
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 }
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 }
func PKT_LONG(reader *packet.Packet) (tbl LONG, err error) { tbl.F_v, err = reader.ReadS64() checkErr(err) return }