serializeParticleSystem function

Map serializeParticleSystem (
  1. ParticleSystem system
)

Implementation

Map serializeParticleSystem(ParticleSystem system) {
  return {
    'life': system.life,
    'lifeVar': system.lifeVar,
    'posVar': serializeOffset(system.posVar),
    'startSize': system.startSize,
    'startSizeVar': system.startSizeVar,
    'endSize': system.endSize,
    'endSizeVar': system.endSizeVar,
    'startRotation': system.startRotation,
    'startRotationVar': system.startRotationVar,
    'endRotation': system.endRotation,
    'endRotationVar': system.endRotationVar,
    'rotateToMovement': system.rotateToMovement,
    'direction': system.direction,
    'directionVar': system.directionVar,
    'speed': system.speed,
    'speedVar': system.speedVar,
    'radialAcceleration': system.radialAcceleration,
    'radialAccelerationVar': system.radialAccelerationVar,
    'tangentialAcceleration': system.tangentialAcceleration,
    'tangentialAccelerationVar': system.tangentialAccelerationVar,
    'maxParticles': system.maxParticles,
    'emissionRate': system.emissionRate,
    'colorSequence': serializeColorSequence(system.colorSequence),
    'alphaVar': system.alphaVar,
    'redVar': system.redVar,
    'greenVar': system.greenVar,
    'blueVar': system.blueVar,
    'numParticlesToEmit': system.numParticlesToEmit,
    'autoRemoveOnFinish': system.autoRemoveOnFinish,
    'gravity': serializeOffset(system.gravity),
    'blendMode': serializeBlendMode(system.transferMode),
  };
}