Exemple #1
0
        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));
        }
Exemple #2
0
 public Buff()
 {
     data     = new JObject();
     prop     = new EffectProp();
     Editored = true;
 }