Interface IDataManager
This class provides data for Dalamud-internal features, but can also be used by plugins if needed.
Assembly: Dalamud.dll
View Source
public interface IDataManager
Properties
Language
Gets the current game client language.
View Source
ClientLanguage Language { get; }
GameData
Gets a Lumina
object which gives access to any excel/game data.
View Source
GameData GameData { get; }
Excel
Gets an Lumina.Excel.ExcelModule
object which gives access to any of the game's sheet data.
View Source
ExcelModule Excel { get; }
HasModifiedGameDataFiles
Gets a value indicating whether the game data files have been modified by another third-party tool.
View Source
bool HasModifiedGameDataFiles { get; }
Methods
GetExcelSheet<T>()
Get an Lumina.Excel.ExcelSheet%601
with the given Excel sheet row type.
View Source
ExcelSheet<T>? GetExcelSheet<T>() where T : ExcelRow
Returns
Lumina.Excel.ExcelSheet<<T>>
: The Lumina.Excel.ExcelSheet%601
, giving access to game rows.##### Type Parameters
Name | Description |
---|---|
T | The 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
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
Type | Name | Description |
---|---|---|
Dalamud.Game.ClientLanguage | language | Language of the sheet to get. |
Type Parameters
Name | Description |
---|---|
T | The excel sheet type to get. |
GetFile(string)
Get a Lumina.Data.FileResource
with the given path.
View Source
FileResource? GetFile(string path)
Returns
Lumina.Data.FileResource
: The Lumina.Data.FileResource
of the file.
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path inside of the game files. |
GetFile<T>(string)
Get a Lumina.Data.FileResource
with the given path, of the given type.
View Source
T? GetFile<T>(string path) where T : FileResource
Returns
<T>
: The Lumina.Data.FileResource
of the file.
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path inside of the game files. |
Type Parameters
Name | Description |
---|---|
T | The type of resource. |
FileExists(string)
Check if the file with the given path exists within the game's index files.
View Source
bool FileExists(string path)
Returns
System.Boolean
: True if the file exists.
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path inside of the game files. |