Esempio n. 1
0
        private void GetSavedEffects()
        {
            EffectsInProject.Clear();
            var foundParticles = service.GetAllContentNamesByType(ContentType.ParticleSystem);

            foreach (var particle in foundParticles)
            {
                EffectsInProject.Add(particle);
            }
        }
Esempio n. 2
0
        //ncrunch: no coverage end

        public void UpdateOnContentChange(ContentType type, string addedName)
        {
            if (type == ContentType.ParticleSystem && !EffectsInProject.Contains(addedName))
            {
                EffectsInProject.Add(addedName);
                RaisePropertyChanged("EffectsInProject");
            }
            if (type == ContentType.ParticleEmitter && !EmittersInProject.Contains(addedName))
            {
                EmittersInProject.Add(addedName);
                RaisePropertyChanged("EmittersInProject");
            }
            if (type == ContentType.Material && !MaterialList.Contains(addedName))
            {
                MaterialList.Add(addedName);
                RaisePropertyChanged("MaterialList");
            }
        }