// ---- METHODS (PRIVATE) -------------------------------------------------------------------------------------- private void Load(BfresLoaderContext context) { Internal = new Internals(); SearchValue = context.Reader.ReadUInt32(); Internal.LeftNodeIndex = context.Reader.ReadUInt16(); Internal.RightNodeIndex = context.Reader.ReadUInt16(); Internal.NameOffset = context.Reader.ReadBfresNameOffset(); Name = Internal.NameOffset.Name; DataPointer = context.Reader.ReadBfresOffset(); }
// ---- CONSTRUCTORS ------------------------------------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="BfresIndexGroupNode"/> class from the given /// <see cref="BfresLoaderContext"/>. The reader of the context has to be positioned at the start of the data. /// </summary> /// <param name="context">The loader context providing information about how to load the data.</param> internal BfresIndexGroupNode(BfresLoaderContext context) { Load(context); // LeftNode and RightNode are filled by parent index group. }