Implemented new framework for MCP Handlers. Made one handler with the new framework.
This commit is contained in:
33
Docs/Blueprint-MCP-Registration.md
Normal file
33
Docs/Blueprint-MCP-Registration.md
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
# Ideas for BlueprintMCP handler registration
|
||||
|
||||
UCLASS()
|
||||
class USpawnNodeHandler : public UMCPHandler
|
||||
{
|
||||
UPROPERTY()
|
||||
FString BlueprintName;
|
||||
|
||||
UPROPERTY();
|
||||
FString GraphName;
|
||||
|
||||
UPROPERTY();
|
||||
FString ActionName;
|
||||
|
||||
UPROPERTY(meta = "optional");
|
||||
int PosX;
|
||||
|
||||
UPROPERTY(meta = "optional");
|
||||
int PosY;
|
||||
|
||||
UPROPERTY()
|
||||
ElxLuaValueType ValueType;
|
||||
|
||||
// Dummy field. Nothing is actually extracted by the argument parser,
|
||||
// but this tells the argument parser that the parameter "subtree" is
|
||||
// supposed to be there.
|
||||
UPROPERTY()
|
||||
void Subtree;
|
||||
|
||||
virtual void Handle(Json, Result) override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user