Пример #1
0
        private void LoadObjectListEntry(GlobalTagEntry obj, byte[] entryData)
        {
            String tagName = HaloMap.ReadString(entryData, 0, 4);

            obj.Tag      = Tags.GetTag(tagName);
            obj.Unknown1 = HaloMap.ReadUint16(entryData, 4);
            obj.Unknown2 = HaloMap.ReadUint16(entryData, 6);
        }
Пример #2
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];
            }
        }