Пример #1
0
        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);
        }
Пример #2
0
        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);
        }