Show / Hide Table of Contents

Class Repository

Inheritance
System.Object
Repository
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lumina.Data
Assembly: Lumina.dll
Syntax
public class Repository

Fields

| Improve this Doc View Source

CategoryIdToNameMap

Declaration
public static readonly Dictionary<byte, string> CategoryIdToNameMap
Field Value
Type Description
System.Collections.Generic.Dictionary<System.Byte, System.String>
| Improve this Doc View Source

CategoryNameToIdMap

Declaration
public static readonly Dictionary<string, byte> CategoryNameToIdMap
Field Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Byte>

Properties

| Improve this Doc View Source

Categories

A collection of dats assoicated with the current repository.

Declaration
public Dictionary<byte, List<Category>> Categories { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.Byte, System.Collections.Generic.List<Category>>
| Improve this Doc View Source

ExpansionId

Declaration
public int ExpansionId { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Name

Returns the name of the current dat category

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

RootDir

Declaration
public DirectoryInfo RootDir { get; }
Property Value
Type Description
System.IO.DirectoryInfo
| Improve this Doc View Source

Version

Declaration
public string Version { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

BuildDatStr(Byte, Int32, Int32, PlatformId, String)

Builds a filename for a specific game dat

Copied shamelessly: https://github.com/SapphireServer/Sapphire/blob/master/deps/datReader/GameData.cpp#L133-L138

Declaration
public static string BuildDatStr(byte cat, int ex, int chunk, PlatformId platform, string type)
Parameters
Type Name Description
System.Byte cat

Dat category, see CategoryNameToIdMap

System.Int32 ex

Expansion id

System.Int32 chunk

Chunk id

PlatformId platform

Current platform

System.String type
Returns
Type Description
System.String
| Improve this Doc View Source

FileExists(String, ParsedFilePath)

Declaration
public bool FileExists(string catName, ParsedFilePath path)
Parameters
Type Name Description
System.String catName
ParsedFilePath path
Returns
Type Description
System.Boolean
| Improve this Doc View Source

FindIndexes(Byte, Int32, Int32)

Brute force for index and index2 files

Declaration
public List<FileInfo> FindIndexes(byte cat, int ex, int chunk)
Parameters
Type Name Description
System.Byte cat

Current category id

System.Int32 ex

Current expansion id

System.Int32 chunk

The chunk id

Returns
Type Description
System.Collections.Generic.List<System.IO.FileInfo>

System.IO.FileInfo representing the index file found

| Improve this Doc View Source

GetFile<T>(Byte, ParsedFilePath)

Declaration
public T GetFile<T>(byte cat, ParsedFilePath path)
    where T : FileResource
Parameters
Type Name Description
System.Byte cat
ParsedFilePath path
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

GetFile<T>(String, ParsedFilePath)

Declaration
public T GetFile<T>(string cat, ParsedFilePath path)
    where T : FileResource
Parameters
Type Name Description
System.String cat
ParsedFilePath path
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

GetFileMetadata(Byte, ParsedFilePath)

Declaration
public SqPackFileInfo? GetFileMetadata(byte cat, ParsedFilePath path)
Parameters
Type Name Description
System.Byte cat
ParsedFilePath path
Returns
Type Description
System.Nullable<SqPackFileInfo>
| Improve this Doc View Source

GetFileMetadata(String, ParsedFilePath)

Declaration
public SqPackFileInfo? GetFileMetadata(string cat, ParsedFilePath path)
Parameters
Type Name Description
System.String cat
ParsedFilePath path
Returns
Type Description
System.Nullable<SqPackFileInfo>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX