public void Save(string effectName) { if (cfg == null) { cfg = ConfigElement.GetAll(typeof(EffectConfig)); } ConfigElement.SerialiseSimple(cfg, "effects/" + effectName + ".properties", this); }