public Buff(string filename) { this.filename = filename; data = JObject.Parse(System.IO.File.ReadAllText(filename)); prop = new EffectProp(); prop.ReadFromJson(data.GetSafeStringValue("prop")); id = Int32.Parse(System.IO.Path.GetFileNameWithoutExtension(filename)); }
public Buff() { data = new JObject(); prop = new EffectProp(); Editored = true; }