76 lines
3 KiB
C#
76 lines
3 KiB
C#
using System.Runtime.CompilerServices;
|
|
using LLib.ImGui;
|
|
using Questionable.Model.Questing;
|
|
using Questionable.Windows;
|
|
|
|
namespace Questionable.Controller.DebugCommands;
|
|
|
|
internal sealed class SequencesCommandHandler : IDebugCommandHandler
|
|
{
|
|
private readonly QuestSequenceWindow _questSequenceWindow;
|
|
|
|
public string CommandName
|
|
{
|
|
[MethodImpl(MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return global::_003CModule_003E._202D_206D_206A_206E_202C_202B_200C_206C_200E_206A_206D_200E_206A_202A_200C_202E_206E_202C_206F_200B_206D_206F_200C_202C_200B_202B_200F_200B_206A_206F_200F_202E_206B_200E_202B_202A_200F_200B_202A_200E_202E<string>(-2123114850);
|
|
}
|
|
}
|
|
|
|
public SequencesCommandHandler(QuestSequenceWindow questSequenceWindow)
|
|
{
|
|
_questSequenceWindow = questSequenceWindow;
|
|
}
|
|
|
|
public void Execute(string[] arguments)
|
|
{
|
|
int num = ((arguments.Length < 1) ? (-723182513) : (-723182515));
|
|
ElementId elementId = default(ElementId);
|
|
while (true)
|
|
{
|
|
int num2 = num;
|
|
int num3 = -723182516;
|
|
int num4 = num2;
|
|
switch ((num4 | num3) - (num4 & num3))
|
|
{
|
|
case 2:
|
|
num = -723182515;
|
|
break;
|
|
case 1:
|
|
num = ((!_206E_202A_206F_206A_202C_202A_206B_202D_206F_206F_200C_206B_202A_200E_202A_206C_206C_200D_206D_202E_206C_202E_200B_202C_200C_206F_206A_206C_206E_200C_202E_206A_206A_206A_202B_202B_206D_200F_202B_206A_202E(arguments[0], ref elementId)) ? (-723182513) : (-723182516));
|
|
break;
|
|
case 0:
|
|
num = ((!_200F_200D_202B_206C_202A_206C_200D_200E_206E_202D_206E_200B_200C_200E_200B_200E_202B_200E_200B_206D_202D_206B_206F_200F_200E_200B_200E_202A_206D_206A_202C_202B_200E_202D_202C_202E_200D_206E_202D_206E_202E(elementId, (ElementId)null)) ? (-723182513) : (-723182520));
|
|
break;
|
|
case 3:
|
|
_206D_202A_206F_206A_206C_202E_206F_206E_206B_200D_202B_206E_200D_202B_202A_202B_206F_206E_206B_206B_200E_206F_200D_202B_206F_200E_200D_202A_206F_202E_202D_206C_206F_206F_200B_206E_200F_206B_206D_200D_202E((LWindow)_questSequenceWindow);
|
|
return;
|
|
case 4:
|
|
_questSequenceWindow.OpenForQuest(elementId);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
void IDebugCommandHandler.Execute(string[] arguments)
|
|
{
|
|
//ILSpy generated this explicit interface implementation from .override directive in Execute
|
|
this.Execute(arguments);
|
|
}
|
|
|
|
static bool _206E_202A_206F_206A_202C_202A_206B_202D_206F_206F_200C_206B_202A_200E_202A_206C_206C_200D_206D_202E_206C_202E_200B_202C_200C_206F_206A_206C_206E_200C_202E_206A_206A_206A_202B_202B_206D_200F_202B_206A_202E(string P_0, ref ElementId P_1)
|
|
{
|
|
return ElementId.TryFromString(P_0, out P_1);
|
|
}
|
|
|
|
static bool _200F_200D_202B_206C_202A_206C_200D_200E_206E_202D_206E_200B_200C_200E_200B_200E_202B_200E_200B_206D_202D_206B_206F_200F_200E_200B_200E_202A_206D_206A_202C_202B_200E_202D_202C_202E_200D_206E_202D_206E_202E(ElementId P_0, ElementId P_1)
|
|
{
|
|
return P_0 != P_1;
|
|
}
|
|
|
|
static void _206D_202A_206F_206A_206C_202E_206F_206E_206B_200D_202B_206E_200D_202B_202A_202B_206F_206E_206B_206B_200E_206F_200D_202B_206F_200E_200D_202A_206F_202E_202D_206C_206F_206F_200B_206E_200F_206B_206D_200D_202E(LWindow P_0)
|
|
{
|
|
P_0.ToggleOrUncollapse();
|
|
}
|
|
}
|