예제 #1
0
    public override byte[] toBinary()
    {
        writer = new st.net.NetBase.ByteWriter();
        ushort lendraw_item_list = (ushort)draw_item_list.Count;

        writer.write_short(lendraw_item_list);
        for (int i_draw_item_list = 0; i_draw_item_list < lendraw_item_list; i_draw_item_list++)
        {
            st.net.NetBase.draw_item_list listData = draw_item_list[i_draw_item_list];
            listData.toBinary(writer);
        }
        return(writer.data);
    }
예제 #2
0
    public override void fromBinary(byte[] binary)
    {
        reader = new st.net.NetBase.ByteReader(binary);
        ushort lendraw_item_list = reader.Read_ushort();

        draw_item_list = new List <st.net.NetBase.draw_item_list>();
        for (int i_draw_item_list = 0; i_draw_item_list < lendraw_item_list; i_draw_item_list++)
        {
            st.net.NetBase.draw_item_list listData = new st.net.NetBase.draw_item_list();
            listData.fromBinary(reader);
            draw_item_list.Add(listData);
        }
    }