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(); }
/// <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; }