1
Fork 0
mirror of https://github.com/redstrate/Auracite.git synced 2025-04-24 05:37:44 +00:00
auracite/dalamud/Auracite/CurrencyStep.cs
Joshua Goins 66f641b7ca Switch around the server/client for Dalamud communication
This is to facilitate support for this feature on the Web, where the
plugin needs to start a server instead of Auracite itself. Otherwise,
the functionality is identical to before.
2024-10-31 21:46:50 -04:00

34 lines
No EOL
615 B
C#

using FFXIVClientStructs.FFXIV.Client.Game;
namespace Auracite;
public class CurrencyStep : IStep
{
public event IStep.CompletedDelegate? Completed;
public void Run()
{
if (Plugin.ClientState.LocalPlayer != null)
{
unsafe
{
Plugin.package.gil = InventoryManager.Instance()->GetGil();
}
}
Completed?.Invoke();
}
public string StepName()
{
return "Currency";
}
public string StepDescription()
{
return "No user action required.";
}
public void Dispose()
{
}
}