Пример #1
0
        internal static CharDictionary Deserialize(BinaryReader binaryReader)
        {
            CharDictionary dictionary = new CharDictionary();

            binaryReader.ReadInt32();
            dictionary.Length = binaryReader.ReadInt32();
            dictionary.Count  = binaryReader.ReadInt32();
            dictionary.Offset = binaryReader.ReadInt16();
            binaryReader.ReadBytes(0x18);
            dictionary.CharUnitTable = new List <CharUnit>();
            for (int i = 0; i < dictionary.Count; i++)
            {
                dictionary.CharUnitTable.Add(CharUnit.Deserialize(binaryReader));
            }
            binaryReader.ReadInt16();
            return(dictionary);
        }