Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 142a96c

Browse files
authored
Command closures in monobehaviours (#574)
Hack to allow command closures in monobehaviours
1 parent bae8dd8 commit 142a96c

File tree

35 files changed

+665
-378
lines changed

35 files changed

+665
-378
lines changed

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveBlittableSingularGameObjectComponentDispatcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
using System;
56
using System.Collections.Generic;
67
using System.Linq;
78
using Unity.Entities;

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveBlittableSingularReaderWriter.cs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public event Action<BlittableBool> Field1Updated
6666
{
6767
add
6868
{
69-
if (!VerifyNotDisposed())
69+
if (!IsValid())
7070
{
7171
return;
7272
}
@@ -75,7 +75,7 @@ public event Action<BlittableBool> Field1Updated
7575
}
7676
remove
7777
{
78-
if (!VerifyNotDisposed())
78+
if (!IsValid())
7979
{
8080
return;
8181
}
@@ -90,7 +90,7 @@ public event Action<float> Field2Updated
9090
{
9191
add
9292
{
93-
if (!VerifyNotDisposed())
93+
if (!IsValid())
9494
{
9595
return;
9696
}
@@ -99,7 +99,7 @@ public event Action<float> Field2Updated
9999
}
100100
remove
101101
{
102-
if (!VerifyNotDisposed())
102+
if (!IsValid())
103103
{
104104
return;
105105
}
@@ -114,7 +114,7 @@ public event Action<int> Field4Updated
114114
{
115115
add
116116
{
117-
if (!VerifyNotDisposed())
117+
if (!IsValid())
118118
{
119119
return;
120120
}
@@ -123,7 +123,7 @@ public event Action<int> Field4Updated
123123
}
124124
remove
125125
{
126-
if (!VerifyNotDisposed())
126+
if (!IsValid())
127127
{
128128
return;
129129
}
@@ -138,7 +138,7 @@ public event Action<long> Field5Updated
138138
{
139139
add
140140
{
141-
if (!VerifyNotDisposed())
141+
if (!IsValid())
142142
{
143143
return;
144144
}
@@ -147,7 +147,7 @@ public event Action<long> Field5Updated
147147
}
148148
remove
149149
{
150-
if (!VerifyNotDisposed())
150+
if (!IsValid())
151151
{
152152
return;
153153
}
@@ -162,7 +162,7 @@ public event Action<double> Field6Updated
162162
{
163163
add
164164
{
165-
if (!VerifyNotDisposed())
165+
if (!IsValid())
166166
{
167167
return;
168168
}
@@ -171,7 +171,7 @@ public event Action<double> Field6Updated
171171
}
172172
remove
173173
{
174-
if (!VerifyNotDisposed())
174+
if (!IsValid())
175175
{
176176
return;
177177
}
@@ -186,7 +186,7 @@ public event Action<uint> Field8Updated
186186
{
187187
add
188188
{
189-
if (!VerifyNotDisposed())
189+
if (!IsValid())
190190
{
191191
return;
192192
}
@@ -195,7 +195,7 @@ public event Action<uint> Field8Updated
195195
}
196196
remove
197197
{
198-
if (!VerifyNotDisposed())
198+
if (!IsValid())
199199
{
200200
return;
201201
}
@@ -210,7 +210,7 @@ public event Action<ulong> Field9Updated
210210
{
211211
add
212212
{
213-
if (!VerifyNotDisposed())
213+
if (!IsValid())
214214
{
215215
return;
216216
}
@@ -219,7 +219,7 @@ public event Action<ulong> Field9Updated
219219
}
220220
remove
221221
{
222-
if (!VerifyNotDisposed())
222+
if (!IsValid())
223223
{
224224
return;
225225
}
@@ -234,7 +234,7 @@ public event Action<int> Field10Updated
234234
{
235235
add
236236
{
237-
if (!VerifyNotDisposed())
237+
if (!IsValid())
238238
{
239239
return;
240240
}
@@ -243,7 +243,7 @@ public event Action<int> Field10Updated
243243
}
244244
remove
245245
{
246-
if (!VerifyNotDisposed())
246+
if (!IsValid())
247247
{
248248
return;
249249
}
@@ -258,7 +258,7 @@ public event Action<long> Field11Updated
258258
{
259259
add
260260
{
261-
if (!VerifyNotDisposed())
261+
if (!IsValid())
262262
{
263263
return;
264264
}
@@ -267,7 +267,7 @@ public event Action<long> Field11Updated
267267
}
268268
remove
269269
{
270-
if (!VerifyNotDisposed())
270+
if (!IsValid())
271271
{
272272
return;
273273
}
@@ -282,7 +282,7 @@ public event Action<uint> Field12Updated
282282
{
283283
add
284284
{
285-
if (!VerifyNotDisposed())
285+
if (!IsValid())
286286
{
287287
return;
288288
}
@@ -291,7 +291,7 @@ public event Action<uint> Field12Updated
291291
}
292292
remove
293293
{
294-
if (!VerifyNotDisposed())
294+
if (!IsValid())
295295
{
296296
return;
297297
}
@@ -306,7 +306,7 @@ public event Action<ulong> Field13Updated
306306
{
307307
add
308308
{
309-
if (!VerifyNotDisposed())
309+
if (!IsValid())
310310
{
311311
return;
312312
}
@@ -315,7 +315,7 @@ public event Action<ulong> Field13Updated
315315
}
316316
remove
317317
{
318-
if (!VerifyNotDisposed())
318+
if (!IsValid())
319319
{
320320
return;
321321
}
@@ -330,7 +330,7 @@ public event Action<int> Field14Updated
330330
{
331331
add
332332
{
333-
if (!VerifyNotDisposed())
333+
if (!IsValid())
334334
{
335335
return;
336336
}
@@ -339,7 +339,7 @@ public event Action<int> Field14Updated
339339
}
340340
remove
341341
{
342-
if (!VerifyNotDisposed())
342+
if (!IsValid())
343343
{
344344
return;
345345
}
@@ -354,7 +354,7 @@ public event Action<long> Field15Updated
354354
{
355355
add
356356
{
357-
if (!VerifyNotDisposed())
357+
if (!IsValid())
358358
{
359359
return;
360360
}
@@ -363,7 +363,7 @@ public event Action<long> Field15Updated
363363
}
364364
remove
365365
{
366-
if (!VerifyNotDisposed())
366+
if (!IsValid())
367367
{
368368
return;
369369
}
@@ -378,7 +378,7 @@ public event Action<long> Field15Updated
378378
{
379379
add
380380
{
381-
if (!VerifyNotDisposed())
381+
if (!IsValid())
382382
{
383383
return;
384384
}
@@ -387,7 +387,7 @@ public event Action<long> Field15Updated
387387
}
388388
remove
389389
{
390-
if (!VerifyNotDisposed())
390+
if (!IsValid())
391391
{
392392
return;
393393
}
@@ -402,7 +402,7 @@ public event Action<long> Field15Updated
402402
{
403403
add
404404
{
405-
if (!VerifyNotDisposed())
405+
if (!IsValid())
406406
{
407407
return;
408408
}
@@ -411,7 +411,7 @@ public event Action<long> Field15Updated
411411
}
412412
remove
413413
{
414-
if (!VerifyNotDisposed())
414+
if (!IsValid())
415415
{
416416
return;
417417
}

test-project/Assets/Generated/Source/improbable/gdk/tests/ExhaustiveMapKeyGameObjectComponentDispatcher.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// DO NOT EDIT - this file is automatically regenerated.
33
// ===========
44

5+
using System;
56
using System.Collections.Generic;
67
using System.Linq;
78
using Unity.Entities;

0 commit comments

Comments
 (0)