Example #1
0
    public void Load(byte[] bytes)
    {
        m_list = new Dictionary <int, WeaponInfo>();
        BinaryHelper helper = new BinaryHelper(bytes);
        int          length = helper.ReadInt();

        for (int index = 0; index < length; ++index)
        {
            WeaponInfo info = new WeaponInfo();
            info.Load(helper);
            m_list.Add(info.WeaponID, info);
        }
    }