Config files for claude and codex

This commit is contained in:
2026-03-31 17:38:52 -04:00
parent 94ca40d3d6
commit 89815bcd13
5 changed files with 151 additions and 157 deletions

View File

@@ -18,6 +18,6 @@ public:
virtual void Handle() override
{
WingManual::PrintManual(WingManual::AllSections(), nullptr, false);
WingManual::PrintManual({WingManual::Section::All}, nullptr, false);
}
};

View File

@@ -3,19 +3,6 @@
#include "WingHandler.h"
#include "WingTypes.h"
TSet<WingManual::Section> WingManual::AllSections()
{
return {
Section::Paths,
Section::Types,
Section::ParameterLists,
Section::EscapeSequences,
Section::Whitespace,
Section::MaterialEditing,
Section::ImportantCommands,
};
}
void WingManual::PrintHandlerPrototype(UClass *HandlerClass)
{
UWingServer::Print(WingUtils::GetHandlerName(HandlerClass));
@@ -80,17 +67,19 @@ void WingManual::PrintManual(TSet<Section> Sections, UClass *Handler, bool Abrid
if (Sections.IsEmpty()) return;
const bool bPrintAll = Sections.Contains(Section::All);
if (Abridged)
{
UWingServer::Printf(TEXT("\n--- AUTOMATIC DOCUMENTATION ---\n"));
}
if (Sections.Contains(Section::HandlerHelp))
if (Sections.Contains(Section::HandlerHelp) || bPrintAll)
{
PrintHandlerHelp(Handler);
}
if (Sections.Contains(Section::Paths))
if (Sections.Contains(Section::Paths) || bPrintAll)
{
if (Abridged)
{
@@ -136,7 +125,7 @@ void WingManual::PrintManual(TSet<Section> Sections, UClass *Handler, bool Abrid
}
}
if (Sections.Contains(Section::Types))
if (Sections.Contains(Section::Types) || bPrintAll)
{
if (Abridged)
{
@@ -170,38 +159,42 @@ void WingManual::PrintManual(TSet<Section> Sections, UClass *Handler, bool Abrid
}
}
if (Sections.Contains(Section::ParameterLists))
if (Sections.Contains(Section::VariableDeclarations) || bPrintAll)
{
if (Abridged)
{
UWingServer::Print(TEXT(
"\n PARAMETER LISTS: Here is an example parameter list:"
"\n double D,PlayerController P,Array<Int> A"
"\n"
"\n VARIABLE DECLARATIONS: example variable declarations:"
"\n Array<Actor> Actors"
"\n Float F (InstanceEditable)"
"\n String S = This is the default value"
));
}
else
{
UWingServer::Print(TEXT(
"\n PARAMETER LISTS:"
"\n VARIABLE DECLARATIONS:"
"\n"
"\n Parameter lists (including function arguments and function return"
"\n values) are expressed as comma-separated lists of type-name pairs:"
"\n We have our own syntax for variable declarations: a type,"
"\n a name, optional flags, and an optional default value,"
"\n always on one line:"
"\n"
"\n Double D,PlayerController P,Array<Int> A"
"\n Array<Actor> Actors"
"\n Float F (InstanceEditable)"
"\n String S = This is the default value"
"\n"
"\n To change the arguments or return values of a function, edit the"
"\n entry or exit node of the graph using GraphNode_SetArgs."
"\n You can view the arguments using GraphNode_Dump. If a return "
"\n node doesn't exist, you may have to create it using GraphNode_Create"
"\n before you can set return values. Custom event nodes also have"
"\n editable arguments."
"\n The commands Variables_Create, Variables_Modify,"
"\n and Variables_Remove can be used to edit: "
"\n blueprint variables, graph local variables, graph input"
"\n variables, graph output variables, and custom"
"\n event node input variables. Event dispatchers are"
"\n also graphs, so they too can be edited."
"\n"
));
}
}
if (Sections.Contains(Section::EscapeSequences))
if (Sections.Contains(Section::EscapeSequences) || bPrintAll)
{
if (Abridged)
{
@@ -245,7 +238,7 @@ void WingManual::PrintManual(TSet<Section> Sections, UClass *Handler, bool Abrid
}
}
if (Sections.Contains(Section::Whitespace))
if (Sections.Contains(Section::Whitespace) || bPrintAll)
{
UWingServer::Print(TEXT(
"\n ABOUT WHITESPACE:"
@@ -256,7 +249,7 @@ void WingManual::PrintManual(TSet<Section> Sections, UClass *Handler, bool Abrid
));
}
if (Sections.Contains(Section::MaterialEditing))
if (Sections.Contains(Section::MaterialEditing) || bPrintAll)
{
if (Abridged)
{
@@ -283,7 +276,7 @@ void WingManual::PrintManual(TSet<Section> Sections, UClass *Handler, bool Abrid
}
}
if (Sections.Contains(Section::ImportantCommands))
if (Sections.Contains(Section::ImportantCommands) || bPrintAll)
{
UWingServer::Print(TEXT(
"\n COMMANDS YOU SHOULD KNOW ABOUT AND REMEMBER:"

View File

@@ -6,17 +6,17 @@ class WingManual
public:
enum class Section
{
All,
HandlerHelp,
Paths,
Types,
ParameterLists,
VariableDeclarations,
EscapeSequences,
Whitespace,
MaterialEditing,
ImportantCommands,
};
static TSet<Section> AllSections();
static void PrintHandlerPrototype(UClass *Handler);
static void PrintHandlerArguments(UClass *Handler);
static void PrintHandlerDescription(UClass *Handler);