Пример #1
0
        private void LoadEntry(ObjectListEntry obj, byte[] entryData)
        {
            obj.TagId     = HaloMap.ReadUint16(entryData, 0);
            obj.TagIndex  = HaloMap.ReadUint16(entryData, 2);
            obj.RawOffset = HaloMap.ReadUint32(entryData, 4);
            obj.Offset    = obj.RawOffset - _map.Header.MapMagic;
            obj.IsEmpty   = (obj.RawOffset == 0x0);

            if (!obj.IsEmpty)
            {
                obj.ObjectTag = _map.Tables.Tags.TagList[(int)obj.TagId];
            }
        }
 protected uint ReadUint32(uint offset)
 {
     return(HaloMap.ReadUint32(_chunkData, offset));
 }