An entry struct containing information about the model
コード例 #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 / 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())));
                    }
                }
            }
        }