forked from Azzinoth/VisualNodeSystem-Example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomNode4.h
More file actions
25 lines (18 loc) · 661 Bytes
/
CustomNode4.h
File metadata and controls
25 lines (18 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "SubSystems/VisualNodeSystem/VisualNodeSystem.h"
class CustomNode4 : public VisNodeSys::Node
{
friend class NodeFactory;
static bool isRegistered;
float Data = 0.0f;
bool CanConnect(VisNodeSys::NodeSocket* OwnSocket, VisNodeSys::NodeSocket* CandidateSocket, char** MsgToUser);
void SocketEvent(VisNodeSys::NodeSocket* OwnSocket, VisNodeSys::NodeSocket* ConnectedSocket, VisNodeSys::NODE_SOCKET_EVENT EventType);
// Make it private
void SetStyle(VisNodeSys::NODE_STYLE NewValue);
std::string LastSocketEventDiscription = "None";
public:
CustomNode4();
CustomNode4(const CustomNode4& Src);
void Draw();
float GetData();
};