Class ToolsAssetInfo
Namespace: ValveResourceFormat.ToolsAssetInfo
Assembly: ValveResourceFormat.dll
Represents tools asset info data from Valve's Source 2 engine.
csharp
public class ToolsAssetInfoInheritance
Fields
GUARD
Guard value.
csharp
public const uint GUARD = 77220018Field Value
MAGIC
Magic identifier for the file format.
csharp
public const uint MAGIC = 3301747944Field Value
MAGIC2
Magic identifier for the newer file format.
csharp
public const uint MAGIC2 = 3301747945Field Value
Properties
Files
All the assets.
csharp
public Dictionary<string, ToolsAssetInfo.File> Files { get; }Property Value
Dictionary<string, ToolsAssetInfo.File>
KV3Segment
Gets the KV3 segment data, if present.
csharp
public KVObject? KV3Segment { get; }Property Value
Version
File version.
csharp
public uint Version { get; }Property Value
Methods
Read(string)
Opens and reads the given filename. The file is held open until the object is disposed.
csharp
public void Read(string filename)Parameters
filename string
The file to open and read.
Read(Stream)
Reads the given .
csharp
public void Read(Stream input)Parameters
input Stream
The input to read from.
ToString()
Returns a string that represents the current object.
csharp
public override string ToString()Returns
A string that represents the current object.

