public static Msg_C2G_Test3 Readimpl(ScorpioReader reader) { Msg_C2G_Test3 ret = new Msg_C2G_Test3(); ret.Read(reader); return(ret); }
public static IMessage parseByteToMsg(int msgType, byte[] buff) { switch (msgType) { case 0: return(Msg_C2G_Test.Deserialize(buff)); case 1: return(Msg_C2G_Test2.Deserialize(buff)); case 2: return(Msg_C2G_Test3.Deserialize(buff)); default: throw new Exception("找不到MsgType : " + msgType); } }