public MyWeaponEffect(string action, string dummy, string particle) { this.Dummy = dummy; this.Particle = particle; foreach (WeaponEffectAction act in Enum.GetValues(typeof(WeaponEffectAction))) { if (act.ToString().Equals(action)) { Action = act; break; } } }