mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 05:47:43 +01:00
45 lines
1 KiB
C#
45 lines
1 KiB
C#
using Dalamud.Utility;
|
|
using ImGuiNET;
|
|
|
|
namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps
|
|
{
|
|
/// <summary>
|
|
/// Test setup for the Actor Table.
|
|
/// </summary>
|
|
internal class ActorTableAgingStep : IAgingStep
|
|
{
|
|
private int index = 0;
|
|
|
|
/// <inheritdoc/>
|
|
public string Name => "Test ActorTable";
|
|
|
|
/// <inheritdoc/>
|
|
public SelfTestStepResult RunStep(Dalamud dalamud)
|
|
{
|
|
ImGui.Text("Checking actor table...");
|
|
|
|
if (this.index == dalamud.ClientState.Objects.Length - 1)
|
|
{
|
|
return SelfTestStepResult.Pass;
|
|
}
|
|
|
|
var actor = dalamud.ClientState.Objects[this.index];
|
|
this.index++;
|
|
|
|
if (actor == null)
|
|
{
|
|
return SelfTestStepResult.Waiting;
|
|
}
|
|
|
|
Util.ShowObject(actor);
|
|
|
|
return SelfTestStepResult.Waiting;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public void CleanUp(Dalamud dalamud)
|
|
{
|
|
// ignored
|
|
}
|
|
}
|
|
}
|