Esempio n. 1
0
        public Emitter(int capacity, TimeSpan term, Profile profile)
        {
            if (profile == null)
            {
                throw new ArgumentNullException(nameof(profile));
            }

            _term = (float)term.TotalSeconds;

            Buffer    = new ParticleBuffer(capacity);
            Offset    = new Vector();
            Profile   = profile;
            Modifiers = new IModifier[0];
            ModifierExecutionStrategy = ModifierExecutionStrategy.Serial;
            Parameters = new ReleaseParameters();
        }
Esempio n. 2
0
 public ParticleIterator(ParticleBuffer buffer)
 {
     _buffer = buffer;
 }