An entry struct containing information about the model
        /// <inheritdoc/>
        public void LoadBinaryData(byte[] inData)
        {
            using var ms = new MemoryStream(inData);
            using var br = new BinaryReader(ms);
            var entryCount = br.BaseStream.Length / ModelPlacementEntry.GetSize();

            for (var i = 0; i < entryCount; ++i)
            {
                Entries.Add(new ModelPlacementEntry(br.ReadBytes(ModelPlacementEntry.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 / ModelPlacementEntry.GetSize();

                    for (int i = 0; i < EntryCount; ++i)
                    {
                        this.Entries.Add(new ModelPlacementEntry(br.ReadBytes(ModelPlacementEntry.GetSize())));
                    }
                }
            }
        }