Table of Contents

Class ToolsAssetInfo

Namespace
ValveResourceFormat.ToolsAssetInfo
Assembly
ValveResourceFormat.dll

Represents tools asset info data from Valve's Source 2 engine.

public class ToolsAssetInfo

Inheritance

Inherited Members

Fields

GUARD

Guard value.

public const uint GUARD = 77220018

Field Value

uint

MAGIC

Magic identifier for the file format.

public const uint MAGIC = 3301747944

Field Value

uint

MAGIC2

Magic identifier for the newer file format.

public const uint MAGIC2 = 3301747945

Field Value

uint

Properties

Files

All the assets.

public Dictionary<string, ToolsAssetInfo.File> Files { get; }

Property Value

Dictionary<string, ToolsAssetInfo.File>

KV3Segment

Gets the KV3 segment data, if present.

public KVObject? KV3Segment { get; }

Property Value

KVObject?

Version

File version.

public uint Version { get; }

Property Value

uint

Methods

Read(string)

Opens and reads the given filename. The file is held open until the object is disposed.

public void Read(string filename)

Parameters

filename string

The file to open and read.

Read(Stream)

Reads the given System.IO.Stream.

public void Read(Stream input)

Parameters

input Stream

The input System.IO.Stream to read from.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.