Пример #1
0
        /// <inheritdoc/>
        public void LoadBinaryData(byte[] inData)
        {
            using var ms = new MemoryStream(inData);
            using var br = new BinaryReader(ms);
            var entryCount = br.BaseStream.Length / WorldModelObjectPlacementEntry.GetSize();

            for (var i = 0; i < entryCount; ++i)
            {
                Entries.Add(new WorldModelObjectPlacementEntry(br.ReadBytes(WorldModelObjectPlacementEntry.GetSize())));
            }
        }
Пример #2
0
 public void LoadBinaryData(byte[] inData)
 {
     using (MemoryStream ms = new MemoryStream(inData))
     {
         using (BinaryReader br = new BinaryReader(ms))
         {
             long EntryCount = br.BaseStream.Length / WorldModelObjectPlacementEntry.GetSize();
             for (int i = 0; i < EntryCount; ++i)
             {
                 this.Entries.Add(new WorldModelObjectPlacementEntry(br.ReadBytes(WorldModelObjectPlacementEntry.GetSize())));
             }
         }
     }
 }