Exemple #1
0
 public ReqTestSend(Packet packet)
 {
     this._id_u8 = packet.ReadByte();
     this._role_base = new MsgRoleBase(packet);
     this._id_f32 = new List<float>();
     ushort id_f32_count = packet.ReadUshort();
     for (ushort i = 0; i < id_f32_count; i++)
     {
         this._id_f32.Add(packet.ReadFloat());
     }
     this. id_op_u8_flag = packet.ReadByte();
     if (this.id_op_u8_flag == 1)
     {
         this._id_op_u8 = packet.ReadByte();
     }
     this. op_role_base_flag = packet.ReadByte();
     if (this.op_role_base_flag == 1)
     {
         this._op_role_base = new MsgRoleBase(packet);
     }
 }
    public MsgTestSend(Packet packet)
    {
        this._id_u8     = packet.ReadByte();
        this._role_base = new MsgRoleBase(packet);
        this._id_f32    = new List <float>();
        ushort id_f32_count = packet.ReadUshort();

        for (ushort i = 0; i < id_f32_count; i++)
        {
            this._id_f32.Add(packet.ReadFloat());
        }
        this.id_op_u8_flag = packet.ReadByte();
        if (this.id_op_u8_flag == 1)
        {
            this._id_op_u8 = packet.ReadByte();
        }
        this.op_role_base_flag = packet.ReadByte();
        if (this.op_role_base_flag == 1)
        {
            this._op_role_base = new MsgRoleBase(packet);
        }
    }