public object Load(JToken json) { var obj = new PowerSet(); var components = SaveLoad.LoadList <int>(json["PowerList"].Value <JArray>()); obj.PowerList = components.ToArray(); SaveLoad.PostLoadIfPossible(obj); return(obj); }
public void PowerSetAssetConverterTest() { var a = new PowerSet(); var json = SaveLoad.Save(a); Log.Message("Saved power set: {0}", json); var z = SaveLoad.Load(json); Log.Message("Loaded power set: {0}", z); Assert.True(true); }