Class ResourceEditInfo2
Namespace: ValveResourceFormat.Blocks
Assembly: ValveResourceFormat.dll
"RED2" block. CResourceEditInfo.
public class ResourceEditInfo2 : ResourceEditInfoInheritance
object ← Block ← RawBinary ← ResourceEditInfo ← ResourceEditInfo2
Inherited Members
ResourceEditInfo.Type, ResourceEditInfo.InputDependencies, ResourceEditInfo.AdditionalInputDependencies, ResourceEditInfo.ArgumentDependencies, ResourceEditInfo.SpecialDependencies, ResourceEditInfo.AdditionalRelatedFiles, ResourceEditInfo.ChildResourceList, ResourceEditInfo.ChildResourceIds, ResourceEditInfo.SearchableUserData, ResourceEditInfo.Read(BinaryReader), ResourceEditInfo.WriteText(IndentedTextWriter), RawBinary.Read(BinaryReader), RawBinary.Serialize(Stream), RawBinary.WriteText(IndentedTextWriter), Block.Type, Block.Offset, Block.Size, Block.Resource, Block.Read(BinaryReader), Block.ToString(), Block.WriteText(IndentedTextWriter), Block.Serialize(Stream)
Extension Methods
ResourceDataExtensions.AsKeyValueCollection(Block)
Constructors
ResourceEditInfo2()
Initializes a new instance of the ResourceEditInfo2 class.
public ResourceEditInfo2()Properties
Data
Gets the parsed KV3 document, if available.
public KVDocument? Data { get; }Property Value
KVDocument?
SubassetDefinitions
Gets the subasset definitions.
public Dictionary<string, string[]>? SubassetDefinitions { get; }Property Value
Dictionary<string, string[]>?
SubassetReferences
Gets the subasset references.
public Dictionary<string, Dictionary<string, int>>? SubassetReferences { get; }Property Value
Dictionary<string, Dictionary<string, int>>?
Type
Gets the block type.
public override BlockType Type { get; }Property Value
WeakReferenceList
Gets the list of weak references.
public List<string> WeakReferenceList { get; }Property Value
List<string>
Methods
Read(BinaryReader)
Reads the block data from a binary reader.
public override void Read(BinaryReader reader)Parameters
reader BinaryReader
The binary reader to read from.
Serialize(Stream)
Writes the block data in its binary form, as stored in a resource file. Blocks that do not support serialization throw NotImplementedException.
public override void Serialize(Stream stream)Parameters
stream Stream
The stream to write the block data to.
WriteText(IndentedTextWriter)
Writes a human readable text dump of the block contents. This is the output Block.ToString() returns.
public override void WriteText(IndentedTextWriter writer)Parameters
writer IndentedTextWriter
The writer that receives the text, which handles indentation.

