20 lines
628 B
C++
20 lines
628 B
C++
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|||
|
|
|
|||
|
|
|
|||
|
|
#include "DialogueGraphPanelNodeFactory.h"
|
|||
|
|
|
|||
|
|
#include "Node//DialogueGraphNode_NPC.h"
|
|||
|
|
#include "Node/DialogueGraphNode_Player.h"
|
|||
|
|
#include "Widget/DialogueGraphNode.h"
|
|||
|
|
|
|||
|
|
|
|||
|
|
TSharedPtr<SGraphNode> FDialogueGraphPanelNodeFactory::CreateNode(class UEdGraphNode* InNode) const
|
|||
|
|
{
|
|||
|
|
if (UDialogueGraphNode_NPC* NPCNode = Cast<UDialogueGraphNode_NPC>(InNode))
|
|||
|
|
return SNew(SDialogueGraphNode, NPCNode);
|
|||
|
|
|
|||
|
|
if (UDialogueGraphNode_Player* PlayerNode = Cast<UDialogueGraphNode_Player>(InNode))
|
|||
|
|
return SNew(SDialogueGraphNode, PlayerNode);
|
|||
|
|
return nullptr;
|
|||
|
|
}
|