コード例 #1
0
    public override void fromBinary(byte[] binary)
    {
        reader = new st.net.NetBase.ByteReader(binary);
        ushort lentreasure_info = reader.Read_ushort();

        treasure_info = new List <st.net.NetBase.treasure_list>();
        for (int i_treasure_info = 0; i_treasure_info < lentreasure_info; i_treasure_info++)
        {
            st.net.NetBase.treasure_list listData = new st.net.NetBase.treasure_list();
            listData.fromBinary(reader);
            treasure_info.Add(listData);
        }
    }
コード例 #2
0
ファイル: pt_treasure_d378.cs プロジェクト: atom-chen/tianyu
    public override void fromBinary(byte[] binary)
    {
        reader = new st.net.NetBase.ByteReader(binary);
        ushort lenreward = reader.Read_ushort();

        reward = new List <st.net.NetBase.treasure_list>();
        for (int i_reward = 0; i_reward < lenreward; i_reward++)
        {
            st.net.NetBase.treasure_list listData = new st.net.NetBase.treasure_list();
            listData.fromBinary(reader);
            reward.Add(listData);
        }
    }