Table of Contents

Class FileKey

Namespace
WoWLib
Assembly
WoWLib.dll

A file request: by client-internal path, by FileDataID, or both. The generic file identity for version-independent tools — code that handles any client generation operates on FileKeys without caring which half is available (on pre-CASC clients the FileDataID is simply absent); the storage backend uses the half it needs and FileSystem.resolve fills gaps through the listfile. The stored path is always in canonical form.

public class FileKey : IDisposable
Inheritance
FileKey
Implements
Inherited Members

Constructors

FileKey()

public FileKey()

FileKey(string)

public FileKey(string filePath)

Parameters

filePath string

FileKey(string, FileDataId)

public FileKey(string filePath, FileDataId fileId)

Parameters

filePath string
fileId FileDataId

FileKey(FileDataId)

public FileKey(FileDataId fileId)

Parameters

fileId FileDataId

FileKey(FileKey)

Copy-construct: a deep copy of other (the C++ copy constructor).

public FileKey(FileKey other)

Parameters

other FileKey

Properties

Fdid

The numeric identifier, if known.

public FileDataId? Fdid { get; set; }

Property Value

FileDataId

Path

The canonical client-internal path, if known.

public string? Path { get; set; }

Property Value

string

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()