public SFXSound Get(SFXEvent p_event) { SFX entry = Values.FirstOrDefault(e => e.Event == p_event); if (entry == null) { return(null); } return(entry.Sound); }
public override bool Equals(Object p_obj) { //Check for null and compare run-time types. if ((p_obj == null) || !this.GetType().Equals(p_obj.GetType())) { return(false); } else { SFXEvent p = (SFXEvent)p_obj; return(Value == p.Value); } }