Skip to main content

Interface IDataManager

This class provides data for Dalamud-internal features, but can also be used by plugins if needed.

Assembly: Dalamud.dll
View Source
Declaration
public interface IDataManager

Properties

Language

Gets the current game client language.

View Source
Declaration
ClientLanguage Language { get; }

GameData

Gets a Lumina object which gives access to any excel/game data.

View Source
Declaration
GameData GameData { get; }

Excel

Gets an Lumina.Excel.ExcelModule object which gives access to any of the game's sheet data.

View Source
Declaration
ExcelModule Excel { get; }

HasModifiedGameDataFiles

Gets a value indicating whether the game data files have been modified by another third-party tool.

View Source
Declaration
bool HasModifiedGameDataFiles { get; }

Methods

GetExcelSheet<T>()

Get an Lumina.Excel.ExcelSheet%601 with the given Excel sheet row type.

View Source
Declaration
ExcelSheet<T>? GetExcelSheet<T>() where T : ExcelRow
Returns

Lumina.Excel.ExcelSheet<<T>>: The Lumina.Excel.ExcelSheet%601, giving access to game rows.##### Type Parameters

NameDescription
TThe excel sheet type to get.

GetExcelSheet<T>(ClientLanguage)

Get an Lumina.Excel.ExcelSheet%601 with the given Excel sheet row type with a specified language.

View Source
Declaration
ExcelSheet<T>? GetExcelSheet<T>(ClientLanguage language) where T : ExcelRow
Returns

Lumina.Excel.ExcelSheet<<T>>: The Lumina.Excel.ExcelSheet%601, giving access to game rows.

Parameters
TypeNameDescription
Dalamud.Game.ClientLanguagelanguageLanguage of the sheet to get.
Type Parameters
NameDescription
TThe excel sheet type to get.

GetFile(string)

Get a Lumina.Data.FileResource with the given path.

View Source
Declaration
FileResource? GetFile(string path)
Returns

Lumina.Data.FileResource: The Lumina.Data.FileResource of the file.

Parameters
TypeNameDescription
System.StringpathThe path inside of the game files.

GetFile<T>(string)

Get a Lumina.Data.FileResource with the given path, of the given type.

View Source
Declaration
T? GetFile<T>(string path) where T : FileResource
Returns

<T>: The Lumina.Data.FileResource of the file.

Parameters
TypeNameDescription
System.StringpathThe path inside of the game files.
Type Parameters
NameDescription
TThe type of resource.

FileExists(string)

Check if the file with the given path exists within the game's index files.

View Source
Declaration
bool FileExists(string path)
Returns

System.Boolean: True if the file exists.

Parameters
TypeNameDescription
System.StringpathThe path inside of the game files.