Пример #1
0
    public override void fromBinary(byte[] binary)
    {
        reader = new st.net.NetBase.ByteReader(binary);
        id     = reader.Read_uint();
        name   = reader.Read_str();
        level  = reader.Read_uint();
        exp    = reader.Read_ulong();
        prof   = reader.Read_uint();
        cur_hp = reader.Read_uint();
        cur_mp = reader.Read_uint();
        ushort lenproperty_list = reader.Read_ushort();

        property_list = new List <st.net.NetBase.property>();
        for (int i_property_list = 0; i_property_list < lenproperty_list; i_property_list++)
        {
            st.net.NetBase.property listData = new st.net.NetBase.property();
            listData.fromBinary(reader);
            property_list.Add(listData);
        }
        ushort lenequip_id_list = reader.Read_ushort();

        equip_id_list = new List <uint>();
        for (int i_equip_id_list = 0; i_equip_id_list < lenequip_id_list; i_equip_id_list++)
        {
            uint listData = reader.Read_uint();
            equip_id_list.Add(listData);
        }
        camp = reader.Read_uint();
        ushort lenresource_list = reader.Read_ushort();

        resource_list = new List <st.net.NetBase.resource_list>();
        for (int i_resource_list = 0; i_resource_list < lenresource_list; i_resource_list++)
        {
            st.net.NetBase.resource_list listData = new st.net.NetBase.resource_list();
            listData.fromBinary(reader);
            resource_list.Add(listData);
        }
        guild_name = reader.Read_str();
        ushort lenmodel_clothes_id = reader.Read_ushort();

        model_clothes_id = new List <int>();
        for (int i_model_clothes_id = 0; i_model_clothes_id < lenmodel_clothes_id; i_model_clothes_id++)
        {
            int listData = reader.Read_int();
            model_clothes_id.Add(listData);
        }
        title_id            = reader.Read_uint();
        sla                 = reader.Read_uint();
        magic_weapon_id     = reader.Read_int();
        magic_strength_lev  = reader.Read_int();
        magic_strength_star = reader.Read_int();
        fiight_score        = reader.Read_int();
        vip_lev             = reader.Read_uint();
        guild_id            = reader.Read_uint();
    }