示例#1
0
    public void Load(byte[] bytes)
    {
        BinaryHelper helper = new BinaryHelper(bytes);
        int          length = helper.ReadInt();

        BuffInfoList = new Dictionary <int, BuffInfo>(length);
        for (int index = 0; index < length; ++index)
        {
            BuffInfo info = new BuffInfo();
            info.Load(helper);
            BuffInfoList.Add(info.ID, info);
        }
    }