DatDigger.Sections.Animation.AttChunk.LoadSection C# (CSharp) Method

LoadSection() public method

public LoadSection ( BinaryReaderEx reader ) : void
reader BinaryReaderEx
return void
        public override void LoadSection(BinaryReaderEx reader)
        {
            base.LoadSection(reader);

            for (var i = 0; i < this.NumChildren; i++)
            {
                StringEntry entry = new StringEntry()
                {
                    StringIndex = reader.ReadInt16(),
                    Value = reader.ReadInt16(),
                    Parent = this
                };

                entry.DisplayName = entry.StringIndex.ToString();
                this.Children.Add(entry);
            }
        }