@@ -34,7 +34,7 @@ const emptyPS = {
3434 simulationSpace : undefined ,
3535 limitVelocity : undefined ,
3636 playbackState : undefined ,
37- bursts : [ ] as const
37+ bursts : undefined
3838}
3939
4040describe ( 'Generated ParticleSystem ProtoBuf' , ( ) => {
@@ -189,10 +189,10 @@ describe('Generated ParticleSystem ProtoBuf', () => {
189189 ...emptyPS ,
190190 rate : 10 ,
191191 lifetime : 5 ,
192- bursts : [
192+ bursts : { values : [
193193 { time : 0 , count : 20 , cycles : 3 , interval : 0.5 , probability : 1.0 } ,
194194 { time : 2.0 , count : 50 , cycles : undefined , interval : undefined , probability : undefined }
195- ]
195+ ] }
196196 } )
197197 } )
198198
@@ -204,7 +204,6 @@ describe('Generated ParticleSystem ProtoBuf', () => {
204204 ParticleSystem . create ( entity , {
205205 rate : 10 ,
206206 lifetime : 5 ,
207- bursts : [ ] ,
208207 shape : ParticleSystem . Shape . Cone ( { angle : 30 , radius : 1 } )
209208 } )
210209
@@ -219,7 +218,6 @@ describe('Generated ParticleSystem ProtoBuf', () => {
219218
220219 ParticleSystem . create ( entity , {
221220 rate : 5 ,
222- bursts : [ ] ,
223221 shape : ParticleSystem . Shape . Point ( )
224222 } )
225223
@@ -232,7 +230,6 @@ describe('Generated ParticleSystem ProtoBuf', () => {
232230 const entity = newEngine . addEntity ( )
233231
234232 ParticleSystem . create ( entity , {
235- bursts : [ ] ,
236233 shape : ParticleSystem . Shape . Sphere ( { radius : 3 } )
237234 } )
238235
@@ -245,7 +242,6 @@ describe('Generated ParticleSystem ProtoBuf', () => {
245242 const entity = newEngine . addEntity ( )
246243
247244 ParticleSystem . create ( entity , {
248- bursts : [ ] ,
249245 shape : ParticleSystem . Shape . Box ( { size : { x : 1 , y : 2 , z : 3 } } )
250246 } )
251247
0 commit comments