Пример #1
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lennormal_skill_list = (ushort)normal_skill_list.Count;

        writer.write_short(lennormal_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 = normal_skill_list[i_normal_skill_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
Пример #2
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        writer.write_int(uid);
        writer.write_str(name);
        writer.write_int(battle);
        writer.write_int(lev);
        writer.write_int(vip_lev);
        writer.write_int(prof);
        writer.write_str(guild_name);
        writer.write_int(slaughter);
        ushort lentarget_property = (ushort)target_property.Count;

        writer.write_short(lentarget_property);
        for (int i_target_property = 0; i_target_property < lentarget_property; i_target_property++)
        {
            st.net.NetBase.property listData = target_property[i_target_property];
            listData.toBinary(writer);
        }
        writer.write_int(luck_num);
        ushort lentarget_skill = (ushort)target_skill.Count;

        writer.write_short(lentarget_skill);
        for (int i_target_skill = 0; i_target_skill < lentarget_skill; i_target_skill++)
        {
            st.net.NetBase.normal_skill_list listData = target_skill[i_target_skill];
            listData.toBinary(writer);
        }
        ushort lenmodel_clothes_id = (ushort)model_clothes_id.Count;

        writer.write_short(lenmodel_clothes_id);
        for (int i_model_clothes_id = 0; i_model_clothes_id < lenmodel_clothes_id; i_model_clothes_id++)
        {
            int listData = model_clothes_id[i_model_clothes_id];
            writer.write_int(listData);
        }
        writer.write_int(wing_id);
        writer.write_int(wing_lev);
        ushort lentarget_equip_list = (ushort)target_equip_list.Count;

        writer.write_short(lentarget_equip_list);
        for (int i_target_equip_list = 0; i_target_equip_list < lentarget_equip_list; i_target_equip_list++)
        {
            st.net.NetBase.item_des listData = target_equip_list[i_target_equip_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }