Ejemplo n.º 1
0
        public static void testWrite()
        {
            string  championKey = "Ashe";
            ItemSet set         = createTestSet(championKey);
            bool    success     = ItemSetWriter.writeOutItemSet(set, championKey, "Boots");

            Console.WriteLine(success ? "Wrote out set" : "Couldn't write set (Already exists?)");
        }
Ejemplo n.º 2
0
        public static void testReader()
        {
            string championKey = "Ashe";

            ItemSet.Map map = ItemSet.Map.SummonersRift;
            ItemSet     set = ItemSetWriter.readInItemSet(championKey, map, "Boots");

            if (set != null)
            {
                string JSON = JsonConvert.SerializeObject(set, Formatting.Indented);
                Console.Write(JSON);
            }
            else
            {
                Console.WriteLine("No item set found");
            }
        }