3
3
4
4
#include " AST/Components/CNamespace.h"
5
5
6
- #include < Pipe/Reflect/Struct.h>
7
6
#include < PipeECS.h>
7
+ #include < PipeReflect.h>
8
8
9
9
10
10
namespace rift ::ast
@@ -50,22 +50,23 @@ namespace rift::ast
50
50
PointerToPointer
51
51
};
52
52
} // namespace rift::ast
53
- ENUM (rift::ast::UnaryOperatorType)
54
- ENUM (rift::ast::BinaryOperatorType)
55
- ENUM (rift::ast::TypeMode)
53
+ P_ENUM (rift::ast::UnaryOperatorType)
54
+ P_ENUM (rift::ast::BinaryOperatorType)
55
+ P_ENUM (rift::ast::TypeMode)
56
56
57
57
58
58
namespace rift::ast
59
59
{
60
- struct CExpression : public p ::Struct
60
+ struct CExpression
61
61
{
62
- P_STRUCT (CExpression, p::Struct )
62
+ P_STRUCT (CExpression)
63
63
};
64
64
65
65
66
66
struct CExprCall : public CExpression
67
67
{
68
- P_STRUCT (CExprCall, CExpression)
68
+ using Super = CExpression;
69
+ P_STRUCT (CExprCall)
69
70
70
71
P_PROP (function)
71
72
Namespace function;
@@ -75,7 +76,8 @@ namespace rift::ast
75
76
// Data pointing to the id of the function from CExprCall's type and function names
76
77
struct CExprCallId : public CExpression
77
78
{
78
- P_STRUCT (CExprCallId, CExpression, p::Struct_NotSerialized)
79
+ using Super = CExpression;
80
+ P_STRUCT (CExprCallId, p::TF_NotSerialized)
79
81
80
82
// Id pointing to the function declaration
81
83
P_PROP (functionId)
@@ -88,7 +90,8 @@ namespace rift::ast
88
90
89
91
struct CExprUnaryOperator : public CExpression
90
92
{
91
- P_STRUCT (CExprUnaryOperator, CExpression)
93
+ using Super = CExpression;
94
+ P_STRUCT (CExprUnaryOperator)
92
95
93
96
P_PROP (type)
94
97
UnaryOperatorType type = UnaryOperatorType::Not;
@@ -101,7 +104,8 @@ namespace rift::ast
101
104
102
105
struct CExprBinaryOperator : public CExpression
103
106
{
104
- P_STRUCT (CExprBinaryOperator, CExpression)
107
+ using Super = CExpression;
108
+ P_STRUCT (CExprBinaryOperator)
105
109
106
110
P_PROP (type)
107
111
BinaryOperatorType type = BinaryOperatorType::Add;
@@ -114,7 +118,8 @@ namespace rift::ast
114
118
115
119
struct CExprDeclRef : public CExpression
116
120
{
117
- P_STRUCT (CExprDeclRef, CExpression)
121
+ using Super = CExpression;
122
+ P_STRUCT (CExprDeclRef)
118
123
119
124
P_PROP (ownerName)
120
125
p::Tag ownerName;
@@ -126,16 +131,17 @@ namespace rift::ast
126
131
127
132
struct CExprDeclRefId : public CExpression
128
133
{
129
- P_STRUCT (CExprDeclRefId, CExpression)
134
+ using Super = CExpression;
135
+ P_STRUCT (CExprDeclRefId)
130
136
131
137
P_PROP (declarationId)
132
138
p::Id declarationId = p::NoId;
133
139
};
134
140
135
141
136
- struct ExprInput : public p ::Struct
142
+ struct ExprInput
137
143
{
138
- P_STRUCT (ExprInput, p::Struct )
144
+ P_STRUCT (ExprInput)
139
145
140
146
P_PROP (nodeId)
141
147
p::Id nodeId = p::NoId;
@@ -153,9 +159,9 @@ namespace rift::ast
153
159
};
154
160
155
161
156
- struct ExprOutput : public p ::Struct
162
+ struct ExprOutput
157
163
{
158
- P_STRUCT (ExprOutput, p::Struct )
164
+ P_STRUCT (ExprOutput)
159
165
160
166
P_PROP (nodeId)
161
167
p::Id nodeId = p::NoId;
@@ -173,9 +179,9 @@ namespace rift::ast
173
179
};
174
180
175
181
176
- struct CExprInputs : public p ::Struct
182
+ struct CExprInputs
177
183
{
178
- P_STRUCT (CExprInputs, p::Struct )
184
+ P_STRUCT (CExprInputs)
179
185
180
186
P_PROP (linkedOutputs)
181
187
p::TArray<ExprOutput> linkedOutputs;
@@ -213,9 +219,9 @@ namespace rift::ast
213
219
};
214
220
215
221
216
- struct CExprOutputs : public p ::Struct
222
+ struct CExprOutputs
217
223
{
218
- P_STRUCT (CExprOutputs, p::Struct )
224
+ P_STRUCT (CExprOutputs)
219
225
220
226
P_PROP (pinIds)
221
227
p::TArray<p::Id> pinIds;
@@ -247,9 +253,9 @@ namespace rift::ast
247
253
};
248
254
249
255
250
- struct CExprType : public p ::Struct
256
+ struct CExprType
251
257
{
252
- P_STRUCT (CExprType, p::Struct )
258
+ P_STRUCT (CExprType)
253
259
254
260
P_PROP (type)
255
261
Namespace type;
@@ -259,11 +265,11 @@ namespace rift::ast
259
265
};
260
266
261
267
262
- struct CExprTypeId : public p ::Struct
268
+ struct CExprTypeId
263
269
{
264
- P_STRUCT (CExprTypeId, p::Struct )
270
+ P_STRUCT (CExprTypeId)
265
271
266
- P_PROP (id, p::Prop_NotSerialized )
272
+ P_PROP (id, p::PF_NotSerialized )
267
273
p::Id id = p::NoId;
268
274
269
275
P_PROP (mode)
0 commit comments