38 #include "Coherent/UI/Binding/Binder.h"
45 inline void CoherentBindInternal(Binder* binder, FVector2D& value)
49 CoherentBindInternal(binder,
"X");
50 CoherentBindInternal(binder, value.X);
51 CoherentBindInternal(binder,
"Y");
52 CoherentBindInternal(binder, value.Y);
57 inline void CoherentBindInternal(Binder* binder,
const FVector2D& value)
61 CoherentBindInternal(binder,
"X");
62 CoherentBindInternal(binder, value.X);
63 CoherentBindInternal(binder,
"Y");
64 CoherentBindInternal(binder, value.Y);
69 inline void CoherentReadInternal(Binder* binder, FVector2D& value)
71 size_t size = binder->ReadMapBegin();
73 if (binder->ReadProperty(
"X"))
75 CoherentReadInternal(binder, value.X);
78 if (binder->ReadProperty(
"Y"))
80 CoherentReadInternal(binder, value.Y);
86 inline void CoherentBindInternal(Binder* binder, FVector& value)
90 CoherentBindInternal(binder,
"X");
91 CoherentBindInternal(binder, value.X);
92 CoherentBindInternal(binder,
"Y");
93 CoherentBindInternal(binder, value.Y);
94 CoherentBindInternal(binder,
"Z");
95 CoherentBindInternal(binder, value.Z);
100 inline void CoherentBindInternal(Binder* binder,
const FVector& value)
104 CoherentBindInternal(binder,
"X");
105 CoherentBindInternal(binder, value.X);
106 CoherentBindInternal(binder,
"Y");
107 CoherentBindInternal(binder, value.Y);
108 CoherentBindInternal(binder,
"Z");
109 CoherentBindInternal(binder, value.Z);
114 inline void CoherentReadInternal(Binder* binder, FVector& value)
116 size_t size = binder->ReadMapBegin();
118 if (binder->ReadProperty(
"X"))
120 CoherentReadInternal(binder, value.X);
123 if (binder->ReadProperty(
"Y"))
125 CoherentReadInternal(binder, value.Y);
128 if (binder->ReadProperty(
"Z"))
130 CoherentReadInternal(binder, value.Z);
133 binder->ReadMapEnd();
136 inline void CoherentBindInternal(Binder* binder, FVector4& value)
140 CoherentBindInternal(binder,
"X");
141 CoherentBindInternal(binder, value.X);
142 CoherentBindInternal(binder,
"Y");
143 CoherentBindInternal(binder, value.Y);
144 CoherentBindInternal(binder,
"Z");
145 CoherentBindInternal(binder, value.Z);
146 CoherentBindInternal(binder,
"W");
147 CoherentBindInternal(binder, value.W);
152 inline void CoherentBindInternal(Binder* binder,
const FVector4& value)
156 CoherentBindInternal(binder,
"X");
157 CoherentBindInternal(binder, value.X);
158 CoherentBindInternal(binder,
"Y");
159 CoherentBindInternal(binder, value.Y);
160 CoherentBindInternal(binder,
"Z");
161 CoherentBindInternal(binder, value.Z);
162 CoherentBindInternal(binder,
"W");
163 CoherentBindInternal(binder, value.W);
168 inline void CoherentReadInternal(Binder* binder, FVector4& value)
170 size_t size = binder->ReadMapBegin();
172 if (binder->ReadProperty(
"X"))
174 CoherentReadInternal(binder, value.X);
177 if (binder->ReadProperty(
"Y"))
179 CoherentReadInternal(binder, value.Y);
182 if (binder->ReadProperty(
"Z"))
184 CoherentReadInternal(binder, value.Z);
187 if (binder->ReadProperty(
"W"))
189 CoherentReadInternal(binder, value.W);
192 binder->ReadMapEnd();