Esempio n. 1
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        writer.write_int(type);
        writer.write_int(send_uid);
        writer.write_str(name);
        writer.write_str(receive_name);
        writer.write_int(vip_lev);
        writer.write_int(prof);
        writer.write_str(content);
        writer.write_int(scene);
        writer.write_int(x);
        writer.write_int(y);
        writer.write_int(z);
        writer.write_int(sort);
        writer.write_int(time);
        writer.write_int(item_type);
        ushort lenitem = (ushort)item.Count;

        writer.write_short(lenitem);
        for (int i_item = 0; i_item < lenitem; i_item++)
        {
            st.net.NetBase.item_des listData = item[i_item];
            listData.toBinary(writer);
        }
        ushort lencontent_info = (ushort)content_info.Count;

        writer.write_short(lencontent_info);
        for (int i_content_info = 0; i_content_info < lencontent_info; i_content_info++)
        {
            int listData = content_info[i_content_info];
            writer.write_int(listData);
        }
        return(writer.data);
    }
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        writer.write_int(uid);
        writer.write_str(name);
        writer.write_int(lev);
        writer.write_int(prof);
        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);
    }
Esempio n. 3
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lenitems = (ushort)items.Count;

        writer.write_short(lenitems);
        for (int i_items = 0; i_items < lenitems; i_items++)
        {
            st.net.NetBase.item_des listData = items[i_items];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
Esempio n. 4
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lenequ_list = (ushort)equ_list.Count;

        writer.write_short(lenequ_list);
        for (int i_equ_list = 0; i_equ_list < lenequ_list; i_equ_list++)
        {
            st.net.NetBase.item_des listData = equ_list[i_equ_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
Esempio n. 5
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lenguild_item = (ushort)guild_item.Count;

        writer.write_short(lenguild_item);
        for (int i_guild_item = 0; i_guild_item < lenguild_item; i_guild_item++)
        {
            st.net.NetBase.item_des listData = guild_item[i_guild_item];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
Esempio n. 6
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);
    }
Esempio n. 7
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        writer.write_int(pid);
        writer.write_str(name);
        writer.write_str(guild_name);
        writer.write_int(prof);
        writer.write_int(lev);
        writer.write_int(title);
        ushort lenitem_list = (ushort)item_list.Count;

        writer.write_short(lenitem_list);
        for (int i_item_list = 0; i_item_list < lenitem_list; i_item_list++)
        {
            st.net.NetBase.item_des listData = item_list[i_item_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
Esempio n. 8
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lenempty_bags = (ushort)empty_bags.Count;

        writer.write_short(lenempty_bags);
        for (int i_empty_bags = 0; i_empty_bags < lenempty_bags; i_empty_bags++)
        {
            int listData = empty_bags[i_empty_bags];
            writer.write_int(listData);
        }
        ushort lenitem_list = (ushort)item_list.Count;

        writer.write_short(lenitem_list);
        for (int i_item_list = 0; i_item_list < lenitem_list; i_item_list++)
        {
            st.net.NetBase.item_des listData = item_list[i_item_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lenemptys = (ushort)emptys.Count;

        writer.write_short(lenemptys);
        for (int i_emptys = 0; i_emptys < lenemptys; i_emptys++)
        {
            int listData = emptys[i_emptys];
            writer.write_int(listData);
        }
        ushort lenguld_items = (ushort)guld_items.Count;

        writer.write_short(lenguld_items);
        for (int i_guld_items = 0; i_guld_items < lenguld_items; i_guld_items++)
        {
            st.net.NetBase.item_des listData = guld_items[i_guld_items];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
Esempio n. 10
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        writer.write_int(type);
        ushort lennomal_list = (ushort)nomal_list.Count;

        writer.write_short(lennomal_list);
        for (int i_nomal_list = 0; i_nomal_list < lennomal_list; i_nomal_list++)
        {
            st.net.NetBase.normal_info listData = nomal_list[i_nomal_list];
            listData.toBinary(writer);
        }
        ushort lenitem = (ushort)item.Count;

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