1
+ using System . Runtime . CompilerServices ;
2
+
1
3
namespace RelEcs
2
4
{
3
5
public static class CommandsExtensions
4
6
{
5
7
public delegate void RefAction < C > ( ref C c ) ;
8
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
6
9
public static void ForEach < C > ( this Commands commands , RefAction < C > action )
7
10
where C : struct
8
11
{
@@ -17,6 +20,7 @@ public static void ForEach<C>(this Commands commands, RefAction<C> action)
17
20
}
18
21
19
22
public delegate void RefAction < C1 , C2 > ( ref C1 c1 , ref C2 c2 ) ;
23
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
20
24
public static void ForEach < C1 , C2 > ( this Commands commands , RefAction < C1 , C2 > action )
21
25
where C1 : struct
22
26
where C2 : struct
@@ -33,6 +37,7 @@ public static void ForEach<C1, C2>(this Commands commands, RefAction<C1, C2> act
33
37
}
34
38
35
39
public delegate void RefAction < C1 , C2 , C3 > ( ref C1 c1 , ref C2 c2 , ref C3 c3 ) ;
40
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
36
41
public static void ForEach < C1 , C2 , C3 > ( this Commands commands , RefAction < C1 , C2 , C3 > action )
37
42
where C1 : struct
38
43
where C2 : struct
@@ -51,6 +56,7 @@ public static void ForEach<C1, C2, C3>(this Commands commands, RefAction<C1, C2,
51
56
}
52
57
53
58
public delegate void RefAction < C1 , C2 , C3 , C4 > ( ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 ) ;
59
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
54
60
public static void ForEach < C1 , C2 , C3 , C4 > ( this Commands commands , RefAction < C1 , C2 , C3 , C4 > action )
55
61
where C1 : struct
56
62
where C2 : struct
@@ -71,6 +77,7 @@ public static void ForEach<C1, C2, C3, C4>(this Commands commands, RefAction<C1,
71
77
}
72
78
73
79
public delegate void RefAction < C1 , C2 , C3 , C4 , C5 > ( ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 ) ;
80
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
74
81
public static void ForEach < C1 , C2 , C3 , C4 , C5 > ( this Commands commands , RefAction < C1 , C2 , C3 , C4 , C5 > action )
75
82
where C1 : struct
76
83
where C2 : struct
@@ -93,6 +100,7 @@ public static void ForEach<C1, C2, C3, C4, C5>(this Commands commands, RefAction
93
100
}
94
101
95
102
public delegate void RefAction < C1 , C2 , C3 , C4 , C5 , C6 > ( ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 , ref C6 c6 ) ;
103
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
96
104
public static void ForEach < C1 , C2 , C3 , C4 , C5 , C6 > ( this Commands commands , RefAction < C1 , C2 , C3 , C4 , C5 , C6 > action )
97
105
where C1 : struct
98
106
where C2 : struct
@@ -117,6 +125,7 @@ public static void ForEach<C1, C2, C3, C4, C5, C6>(this Commands commands, RefAc
117
125
}
118
126
119
127
public delegate void RefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 > ( ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 , ref C6 c6 , ref C7 c7 ) ;
128
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
120
129
public static void ForEach < C1 , C2 , C3 , C4 , C5 , C6 , C7 > ( this Commands commands , RefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 > action )
121
130
where C1 : struct
122
131
where C2 : struct
@@ -143,6 +152,7 @@ public static void ForEach<C1, C2, C3, C4, C5, C6, C7>(this Commands commands, R
143
152
}
144
153
145
154
public delegate void RefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 > ( ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 , ref C6 c6 , ref C7 c7 , ref C8 c8 ) ;
155
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
146
156
public static void ForEach < C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 > ( this Commands commands , RefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 > action )
147
157
where C1 : struct
148
158
where C2 : struct
@@ -171,6 +181,7 @@ public static void ForEach<C1, C2, C3, C4, C5, C6, C7, C8>(this Commands command
171
181
}
172
182
173
183
public delegate void EntityRefAction ( Entity entity ) ;
184
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
174
185
public static void ForEach ( this Commands commands , EntityRefAction action )
175
186
{
176
187
var query = commands . Query ( ) ;
@@ -182,6 +193,7 @@ public static void ForEach(this Commands commands, EntityRefAction action)
182
193
}
183
194
184
195
public delegate void EntityRefAction < C > ( Entity entity , ref C c ) ;
196
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
185
197
public static void ForEach < C > ( this Commands commands , EntityRefAction < C > action )
186
198
where C : struct
187
199
{
@@ -196,6 +208,7 @@ public static void ForEach<C>(this Commands commands, EntityRefAction<C> action)
196
208
}
197
209
198
210
public delegate void EntityRefAction < C1 , C2 > ( Entity entity , ref C1 c1 , ref C2 c2 ) ;
211
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
199
212
public static void ForEach < C1 , C2 > ( this Commands commands , EntityRefAction < C1 , C2 > action )
200
213
where C1 : struct
201
214
where C2 : struct
@@ -212,6 +225,7 @@ public static void ForEach<C1, C2>(this Commands commands, EntityRefAction<C1, C
212
225
}
213
226
214
227
public delegate void EntityRefAction < C1 , C2 , C3 > ( Entity entity , ref C1 c1 , ref C2 c2 , ref C3 c3 ) ;
228
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
215
229
public static void ForEach < C1 , C2 , C3 > ( this Commands commands , EntityRefAction < C1 , C2 , C3 > action )
216
230
where C1 : struct
217
231
where C2 : struct
@@ -230,6 +244,7 @@ public static void ForEach<C1, C2, C3>(this Commands commands, EntityRefAction<C
230
244
}
231
245
232
246
public delegate void EntityRefAction < C1 , C2 , C3 , C4 > ( Entity entity , ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 ) ;
247
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
233
248
public static void ForEach < C1 , C2 , C3 , C4 > ( this Commands commands , EntityRefAction < C1 , C2 , C3 , C4 > action )
234
249
where C1 : struct
235
250
where C2 : struct
@@ -250,6 +265,7 @@ public static void ForEach<C1, C2, C3, C4>(this Commands commands, EntityRefActi
250
265
}
251
266
252
267
public delegate void EntityRefAction < C1 , C2 , C3 , C4 , C5 > ( Entity entity , ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 ) ;
268
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
253
269
public static void ForEach < C1 , C2 , C3 , C4 , C5 > ( this Commands commands , EntityRefAction < C1 , C2 , C3 , C4 , C5 > action )
254
270
where C1 : struct
255
271
where C2 : struct
@@ -272,6 +288,7 @@ public static void ForEach<C1, C2, C3, C4, C5>(this Commands commands, EntityRef
272
288
}
273
289
274
290
public delegate void EntityRefAction < C1 , C2 , C3 , C4 , C5 , C6 > ( Entity entity , ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 , ref C6 c6 ) ;
291
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
275
292
public static void ForEach < C1 , C2 , C3 , C4 , C5 , C6 > ( this Commands commands , EntityRefAction < C1 , C2 , C3 , C4 , C5 , C6 > action )
276
293
where C1 : struct
277
294
where C2 : struct
@@ -296,6 +313,7 @@ public static void ForEach<C1, C2, C3, C4, C5, C6>(this Commands commands, Entit
296
313
}
297
314
298
315
public delegate void EntityRefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 > ( Entity entity , ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 , ref C6 c6 , ref C7 c7 ) ;
316
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
299
317
public static void ForEach < C1 , C2 , C3 , C4 , C5 , C6 , C7 > ( this Commands commands , EntityRefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 > action )
300
318
where C1 : struct
301
319
where C2 : struct
@@ -322,6 +340,7 @@ public static void ForEach<C1, C2, C3, C4, C5, C6, C7>(this Commands commands, E
322
340
}
323
341
324
342
public delegate void EntityRefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 > ( Entity entity , ref C1 c1 , ref C2 c2 , ref C3 c3 , ref C4 c4 , ref C5 c5 , ref C6 c6 , ref C7 c7 , ref C8 c8 ) ;
343
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
325
344
public static void ForEach < C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 > ( this Commands commands , EntityRefAction < C1 , C2 , C3 , C4 , C5 , C6 , C7 , C8 > action )
326
345
where C1 : struct
327
346
where C2 : struct
0 commit comments