Exemplo n.º 1
0
        public override void ApplyFromTemplate(Component template)
        {
            SoundLoop sound = template as SoundLoop;

            this.Range      = sound.Range;
            this.FallOff    = sound.FallOff;
            this.CueNameId  = sound.CueNameId;
            this.Volume     = sound.Volume;
            this.Collective = sound.Collective;
            this.Pitch      = sound.Pitch;
        }
Exemplo n.º 2
0
        public override bool IsDifferent(Entity entity, Component template)
        {
            SoundLoop sound     = template as SoundLoop;
            bool      different = (Range != sound.Range) &&
                                  (FallOff != sound.FallOff) &&
                                  (CueNameId != sound.CueNameId) &&
                                  (Volume != sound.Volume) &&
                                  (Collective != sound.Collective) &&
                                  (Pitch != sound.Pitch);

            return(different);
        }