Beispiel #1
0
    public void Deserialize(PacketReader stream)
    {
        ReleaseAllResult();
        m_nodeParentIndex.Clear();
        m_results.Clear();

        int count = stream.ReadCompressInt();

        for (int i = 0; i < count; i++)
        {
            int idx = stream.ReadCompressInt();
            m_nodeParentIndex.Add(idx);
        }
        for (int i = 0; i < count; i++)
        {
            int     classID = stream.ReadCompressInt();
            IResult result  = m_context.CreateResult(classID);
            result.Deserialize(stream);
            m_results.Add(result);
        }
    }