mirror of
https://github.com/redstrate/Auracite.git
synced 2025-04-24 13:37: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.
32 lines
No EOL
715 B
C#
32 lines
No EOL
715 B
C#
using Dalamud.Game.ClientState.Objects.Enums;
|
|
|
|
namespace Auracite;
|
|
|
|
public class AppearanceStep : IStep
|
|
{
|
|
public event IStep.CompletedDelegate? Completed;
|
|
|
|
public void Run()
|
|
{
|
|
if (Plugin.ClientState.LocalPlayer != null)
|
|
{
|
|
Plugin.package.height = Plugin.ClientState.LocalPlayer.Customize[(int)CustomizeIndex.Height];
|
|
Plugin.package.bust_size = Plugin.ClientState.LocalPlayer.Customize[(int)CustomizeIndex.BustSize];
|
|
}
|
|
Completed?.Invoke();
|
|
}
|
|
|
|
public string StepName()
|
|
{
|
|
return "Appearance";
|
|
}
|
|
|
|
public string StepDescription()
|
|
{
|
|
return "No user action required.";
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
} |