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