public override void Read(ScorpioReader reader)
 {
     __Sign = reader.ReadInt32();
     if (HasSign(1))
     {
         int number = reader.ReadInt32();
         _Value1 = new List <Msg_C2G_Test>();
         for (int i = 0; i < number; ++i)
         {
             _Value1.Add(Msg_C2G_Test.Readimpl(reader));
         }
     }
     if (HasSign(2))
     {
         _Value2 = Msg_C2G_Test2.Readimpl(reader);
     }
     if (HasSign(3))
     {
         _Value3 = (TestEnum)reader.ReadInt32();
     }
     if (HasSign(4))
     {
         int number = reader.ReadInt32();
         _Value4 = new List <TestEnum>();
         for (int i = 0; i < number; ++i)
         {
             _Value4.Add((TestEnum)reader.ReadInt32());
         }
     }
 }
        public static Msg_C2G_Test Readimpl(ScorpioReader reader)
        {
            Msg_C2G_Test ret = new Msg_C2G_Test();

            ret.Read(reader);
            return(ret);
        }
 public override void Read(ScorpioReader reader)
 {
     __Sign = reader.ReadInt32();
     if (HasSign(1))
     {
         _Value1 = Msg_C2G_Test.Readimpl(reader);
     }
 }
        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);
            }
        }
 public Msg_C2G_Test2 setValue1(Msg_C2G_Test value)
 {
     _Value1 = value; AddSign(1); return(this);
 }