Exemplo n.º 1
0
        public virtual void Load(IAetherReader reader)
        {
            reader.Read("EngineData", EngineData);

            //read particles
            reader.ReadParticles("Particles", particles);
            //read managers
            reader.ReadParticleManagers("Managers", Managers);
        }
Exemplo n.º 2
0
        public virtual void Load(IAetherReader reader)
        {
            int version;

            reader.ReadInt32("Version", out version);

            switch (version)
            {
            case 1:
                reader.ReadParticles("Particles", this);
                break;

            default:
                throw new InvalidOperationException("unknown version " + version);
            }
        }
Exemplo n.º 3
0
        public override void Load(IAetherReader reader)
        {
            int version;

            reader.ReadInt32("Version", out version);

            switch (version)
            {
            case 1:
                base.Load(reader);
                _visibleParticles.Clear();
                var visibleParticles = new List <IPhotonNode>();
                // TODO: add IAetherWriter.WriteParticles(string, new ISet<T>)
                reader.ReadParticles("VisibleParticles", visibleParticles); _visibleParticles = new HashSet <IPhotonNode>(visibleParticles);
                break;

            default:
                throw new InvalidOperationException("unknown version " + version);
            }
        }
Exemplo n.º 4
0
 public virtual void Load(IAetherReader reader)
 {
     //read particles
     reader.ReadParticles("Particles", particles);
 }