mirror of
https://github.com/redstrate/Auracite.git
synced 2025-06-30 01:27:45 +00:00
49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using FFXIVClientStructs.FFXIV.Client.Game;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.UI;
|
|
using FFXIVClientStructs.FFXIV.Client.Game.Character;
|
|
|
|
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;
|
|
Plugin.package.unlock_flags = new System.Collections.Generic.List<byte>(); // TODO: lol
|
|
Plugin.package.unlock_flags.AddRange(UIState.Instance()->UnlockLinkBitmask.ToArray());
|
|
Plugin.package.unlock_aetherytes = new System.Collections.Generic.List<byte>(); // TODO: lol
|
|
Plugin.package.unlock_aetherytes.AddRange(UIState.Instance()->UnlockedAetherytesBitmask.ToArray());
|
|
|
|
var localPlayer = Plugin.ClientState.LocalPlayer;
|
|
if (localPlayer != null)
|
|
{
|
|
var gameObject = (Character*)localPlayer.Address;
|
|
Plugin.package.voice = gameObject->Vfx.VoiceId;
|
|
}
|
|
}
|
|
|
|
Completed?.Invoke();
|
|
}
|
|
|
|
public string StepName()
|
|
{
|
|
return "Misc Data";
|
|
}
|
|
|
|
public string StepDescription()
|
|
{
|
|
return "No user action required.";
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|