Ejemplo n.º 1
0
        public static Msg_C2G_Test3 Readimpl(ScorpioReader reader)
        {
            Msg_C2G_Test3 ret = new Msg_C2G_Test3();

            ret.Read(reader);
            return(ret);
        }
Ejemplo n.º 2
0
        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);
            }
        }