Beispiel #1
0
        protected override void Initialize()
        {
            emitters = new List <ParticleEmitter>();

            if (info == null && infoFilepath != "")
            {
                info = Common.ContentManager.Load <ParticleSystemInfo>(infoFilepath);
            }

            AddEmitters();

            if (Common.PreviousScreenResolution != Vector2.One)
            {
                ScreenResolutionChanged();
            }

            base.Initialize();
        }
Beispiel #2
0
 /// <summary>
 /// Creates a new ParticleSystem.
 /// </summary>
 /// <param name="id">The unique identification
 /// name to give to the ParticleSystem.</param>
 /// <param name="info">The ParticleSystemInfo file
 /// accosiated with this ParticleSystem.</param>
 public ParticleSystem(string id, ParticleSystemInfo info)
     : base(id)
 {
     this.info = info;
 }