Example #1
0
        public override void Save(IAetherWriter writer)
        {
            writer.WriteInt32("Version", 1);

            base.Save(writer);
            // TODO: add IAetherWriter.WriteParticles(string, new ISet<T>)
            writer.WriteParticles("VisibleParticles", new List <IPhotonNode>(_visibleParticles));
        }
        public virtual void Save(IAetherWriter writer)
        {
            writer.Write("EngineData", (IAetherSerialization)EngineData);

            //write particles
            writer.WriteParticles("Particles", particles);
            //write managers
            writer.WriteParticleManagers("Managers", Managers);
        }
Example #3
0
        public virtual void Save(IAetherWriter writer)
        {
            writer.WriteInt32("Version", 1);

            writer.WriteParticles("Particles", this);
        }
Example #4
0
 public virtual void Save(IAetherWriter writer)
 {
     //write particles
     writer.WriteParticles("Particles", particles);
 }