Ejemplo n.º 1
0
    public override void fromBinary(byte[] binary)
    {
        reader = new st.net.NetBase.ByteReader(binary);
        ushort lennormal_skill_list = reader.Read_ushort();

        normal_skill_list = new List <st.net.NetBase.normal_skill_list>();
        for (int i_normal_skill_list = 0; i_normal_skill_list < lennormal_skill_list; i_normal_skill_list++)
        {
            st.net.NetBase.normal_skill_list listData = new st.net.NetBase.normal_skill_list();
            listData.fromBinary(reader);
            normal_skill_list.Add(listData);
        }
    }
Ejemplo n.º 2
0
    public override void fromBinary(byte[] binary)
    {
        reader     = new st.net.NetBase.ByteReader(binary);
        uid        = reader.Read_int();
        name       = reader.Read_str();
        battle     = reader.Read_int();
        lev        = reader.Read_int();
        vip_lev    = reader.Read_int();
        prof       = reader.Read_int();
        guild_name = reader.Read_str();
        slaughter  = reader.Read_int();
        ushort lentarget_property = reader.Read_ushort();

        target_property = new List <st.net.NetBase.property>();
        for (int i_target_property = 0; i_target_property < lentarget_property; i_target_property++)
        {
            st.net.NetBase.property listData = new st.net.NetBase.property();
            listData.fromBinary(reader);
            target_property.Add(listData);
        }
        luck_num = reader.Read_int();
        ushort lentarget_skill = reader.Read_ushort();

        target_skill = new List <st.net.NetBase.normal_skill_list>();
        for (int i_target_skill = 0; i_target_skill < lentarget_skill; i_target_skill++)
        {
            st.net.NetBase.normal_skill_list listData = new st.net.NetBase.normal_skill_list();
            listData.fromBinary(reader);
            target_skill.Add(listData);
        }
        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);
        }
        wing_id  = reader.Read_int();
        wing_lev = reader.Read_int();
        ushort lentarget_equip_list = reader.Read_ushort();

        target_equip_list = new List <st.net.NetBase.item_des>();
        for (int i_target_equip_list = 0; i_target_equip_list < lentarget_equip_list; i_target_equip_list++)
        {
            st.net.NetBase.item_des listData = new st.net.NetBase.item_des();
            listData.fromBinary(reader);
            target_equip_list.Add(listData);
        }
    }