Пример #1
0
        internal GamePlayer(SaveIO.SaveReader reader, List <GameObject> objectList, uint datumIndex, long offset)
        {
            _dataPosition = offset;

            _id = datumIndex;

            // Find the biped object
            reader.Seek(offset + 0x2A, SeekOrigin.Begin);
            ushort bipedId = reader.ReadUInt16();

            _biped = (BipedObject)objectList[(int)bipedId];

            // Read gamertag
            reader.Seek(offset + 0xB0, SeekOrigin.Begin);
            _gamertag = reader.ReadUTF16();

            // Read service tag
            reader.Seek(offset + 0xF4, SeekOrigin.Begin);
            _serviceTag = reader.ReadUTF16();
        }