-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuilt_in_flow_types.hpp
155 lines (143 loc) · 4.07 KB
/
built_in_flow_types.hpp
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#ifndef BUILT_IN_FLOW_TYPES_HPP
#define BUILT_IN_FLOW_TYPES_HPP
#include "core_types/flow_type.hpp"
class BuiltInFlowTypes final
{
private:
static BuiltInFlowTypes *singleton;
bool have_types_initialized = false;
List<Ref<FlowType>> built_in_types;
void add_type(Ref<FlowType> p_type);
void _init_types_internal();
public:
static BuiltInFlowTypes *get_singleton();
void init_types();
List<Ref<FlowType>> *get_built_in_types();
int get_type_count() const;
Ref<FlowType> get_type_at(const int p_idx) const;
BuiltInFlowTypes();
~BuiltInFlowTypes();
};
// static const Ref<FlowType> BUILT_IN_FLOW_TYPES[] = {
// FlowType::create_native_type(
// "procedure",
// "Procedure",
// "Flow",
// "Marks the beginning of a Flow procedure.\nNodes of this type can be renamed.",
// "",
// "ProcedureFlowNode",
// "ProcedureFlowNodeEditor",
// true
// ),
// FlowType::create_native_type(
// "return_expression",
// "Return",
// "Flow",
// "Returns the result of an expression to the caller.",
// "",
// "ReturnExpressionFlowNode",
// "ReturnExpressionFlowNodeEditor",
// true
// ),
// FlowType::create_native_type(
// "floating_comment",
// "Comment",
// "",
// "A disconnected text box.\nWrite whatever you want.",
// "",
// "CommentFlowNode",
// "CommentFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "wait_seconds",
// "Wait Fixed Duration",
// "",
// "Pauses script execution for a defined duration.",
// "",
// "WaitSecondsFlowNode",
// "WaitSecondsFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "print_to_console",
// "Print Message to Console",
// "Debug",
// "Prints a message to the console.\nFormat strings are supported, with the values sourced from the expression box. Use the {0}, {1}, etc. style syntax.",
// "",
// "PrintToConsoleFlowNode",
// "PrintToConsoleFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "execute_expression",
// "Execute Expressions",
// "Flow",
// "Executes a series of expressions.\nNo result is returned.",
// "",
// "ExecuteExpressionFlowNode",
// "ExecuteExpressionFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "expression_branch",
// "Conditional Branch",
// "Flow/Control",
// "Branches depending on the result of an evaluated expression.",
// "",
// "ExpressionBranchFlowNode",
// "ExpressionBranchFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "while_expression_true_loop",
// "While Loop",
// "Flow/Control",
// "Repeats a section of code as long as the expressions written evaluate to true.",
// "",
// "WhileExpressionTrueLoopFlowNode",
// "WhileExpressionTrueLoopFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "sequential_branch_execution",
// "Execute Branches Sequentially",
// "Flow/Control",
// "Executes a list of branches one after another, waiting for each to complete before progressing to the next.",
// "",
// "SequentialBranchExecutionFlowNode",
// "MultiBranchExecutionFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "simultaneous_branch_execution",
// "Execute Branches Simultaneously",
// "Flow/Control",
// "Executes a list of branches simultaneously, waiting for all of them to complete before progressing.",
// "",
// "SimultaneousBranchExecutionFlowNode",
// "MultiBranchExecutionFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "assign_expression_to_local_variable",
// "Set Local Variable",
// "Flow/Variables",
// "Assigns a local variable to the result of some expression.",
// "",
// "AssignExpressionToLocalVariableFlowNode",
// "AssignExpressionToVariableFlowNodeEditor",
// false
// ),
// FlowType::create_native_type(
// "assign_expression_to_global_variable",
// "Set Global Variable",
// "Flow/Variables",
// "Assigns a global variable to the result of some expression.",
// "",
// "AssignExpressionToGlobalVariableFlowNode",
// "AssignExpressionToVariableFlowNodeEditor",
// false
// ),
// };
#endif