Skip to content

Commit

Permalink
feat: add capability to provide custom definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenari committed Sep 21, 2024
1 parent 630e776 commit 841d81a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions NetStone/LodestoneClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ private LodestoneClient(DefinitionsContainer definitions, IGameDataProvider? gam
this.Data = gameData;
}

/// <summary>
/// Initializes and returns a new Lodestone client with custom definitions provided<br/>
/// To get a client with standard definitions use <see cref="GetClientAsync"/>
/// </summary>
/// <param name="definitions">A set of custom definitions </param>
/// <param name="gameData">Service providing game data for parsing</param>
/// <param name="lodestoneBaseAddress">Base address for Lodestone access (defaults to EU Lodestone)</param>
/// <returns></returns>
public static LodestoneClient GetCustomClient(DefinitionsContainer definitions,IGameDataProvider? gameData = null,
string lodestoneBaseAddress = Constants.LodestoneBase)
{
return new LodestoneClient(definitions, gameData, lodestoneBaseAddress);
}

/// <summary>
/// Initializes and returns a new Lodestone client with current definitions loaded from xivapi/lodestone-css-selectors
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions NetStone/NetStone.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 841d81a

Please sign in to comment.