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
filePathstring
FileKey(string, FileDataId)
public FileKey(string filePath, FileDataId fileId)
Parameters
filePathstringfileIdFileDataId
FileKey(FileDataId)
public FileKey(FileDataId fileId)
Parameters
fileIdFileDataId
FileKey(FileKey)
Copy-construct: a deep copy of other (the C++ copy constructor).
public FileKey(FileKey other)
Parameters
otherFileKey
Properties
Fdid
The numeric identifier, if known.
public FileDataId? Fdid { get; set; }
Property Value
Path
The canonical client-internal path, if known.
public string? Path { get; set; }
Property Value
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()