mirror of
https://github.com/redstrate/Auracite.git
synced 2025-04-24 21:47:45 +00:00
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.
37 lines
No EOL
923 B
C#
37 lines
No EOL
923 B
C#
using FFXIVClientStructs.FFXIV.Client.Game;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
|
|
|
namespace Auracite;
|
|
|
|
public class MiscStep : IStep
|
|
{
|
|
public event IStep.CompletedDelegate? Completed;
|
|
|
|
public void Run()
|
|
{
|
|
unsafe
|
|
{
|
|
Plugin.package.is_battle_mentor = PlayerState.Instance()->IsBattleMentor();
|
|
Plugin.package.is_trade_mentor = PlayerState.Instance()->IsTradeMentor();
|
|
Plugin.package.is_novice = PlayerState.Instance()->IsNovice();
|
|
Plugin.package.is_returner = PlayerState.Instance()->IsReturner();
|
|
Plugin.package.player_commendations = PlayerState.Instance()->PlayerCommendations;
|
|
}
|
|
|
|
Completed?.Invoke();
|
|
}
|
|
|
|
public string StepName()
|
|
{
|
|
return "Misc Data";
|
|
}
|
|
|
|
public string StepDescription()
|
|
{
|
|
return "No user action required.";
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
} |