1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
MiraiGo/client/c2c_switch.go
2021-11-19 22:07:46 +08:00

82 lines
2.2 KiB
Go

// Code generated by client/c2c_switcher.go DO NOT EDIT.
package client
import (
"github.com/Mrs4s/MiraiGo/client/pb/msg"
)
const (
UnknownDecoder = iota
nonSvcNotifyTroopSystemMsgDecoders
troopSystemMsgDecoders
sysMsgDecoders
otherDecoders
privateMsgDecoders
)
func peekC2CDecoder(msgType int32) (decoder func(*QQClient, *msg.Message, *incomingPacketInfo), decoderType uint8) {
switch msgType {
case 9:
return privateMessageDecoder, privateMsgDecoders
case 10:
return privateMessageDecoder, privateMsgDecoders
case 31:
return privateMessageDecoder, privateMsgDecoders
case 33:
return troopAddMemberBroadcastDecoder, otherDecoders
case 35:
return troopSystemMessageDecoder, troopSystemMsgDecoders
case 36:
return troopSystemMessageDecoder, nonSvcNotifyTroopSystemMsgDecoders
case 37:
return troopSystemMessageDecoder, troopSystemMsgDecoders
case 45:
return troopSystemMessageDecoder, troopSystemMsgDecoders
case 46:
return troopSystemMessageDecoder, troopSystemMsgDecoders
case 79:
return privateMessageDecoder, privateMsgDecoders
case 84:
return troopSystemMessageDecoder, troopSystemMsgDecoders
case 85:
return troopSystemMessageDecoder, nonSvcNotifyTroopSystemMsgDecoders
case 86:
return troopSystemMessageDecoder, troopSystemMsgDecoders
case 87:
return troopSystemMessageDecoder, troopSystemMsgDecoders
case 97:
return privateMessageDecoder, privateMsgDecoders
case 120:
return privateMessageDecoder, privateMsgDecoders
case 132:
return privateMessageDecoder, privateMsgDecoders
case 133:
return privateMessageDecoder, privateMsgDecoders
case 140:
return tempSessionDecoder, privateMsgDecoders
case 141:
return tempSessionDecoder, privateMsgDecoders
case 166:
return privateMessageDecoder, privateMsgDecoders
case 167:
return privateMessageDecoder, privateMsgDecoders
case 187:
return systemMessageDecoder, sysMsgDecoders
case 188:
return systemMessageDecoder, sysMsgDecoders
case 189:
return systemMessageDecoder, sysMsgDecoders
case 190:
return systemMessageDecoder, sysMsgDecoders
case 191:
return systemMessageDecoder, sysMsgDecoders
case 208:
return privatePttDecoder, privateMsgDecoders
case 529:
return msgType0x211Decoder, otherDecoders
default:
return nil, UnknownDecoder
}
}