示例#1
0
        public void SaveSumSpellData()
        {
            SumSpellDataCollection sums = JsonConvert.DeserializeObject<SumSpellDataCollection>(Properties.Resources.SumSpellData);

            DataPush push = new DataPush();
            push.PushSumSpellData(sums);
        }
示例#2
0
        public void SaveItemData()
        {
            ItemDataCollection items = JsonConvert.DeserializeObject<ItemDataCollection>(Properties.Resources.ItemData);

            DataPush push = new DataPush();
            push.PushItemData(items);
        }
示例#3
0
        public void SaveChampData()
        {
            ChampDataCollection champs = JsonConvert.DeserializeObject<ChampDataCollection>(Properties.Resources.ChampData);

            DataPush push = new DataPush();
            push.PushChampData(champs);
        }
示例#4
0
        public void SaveMatchData(string file)
        {
            using (StreamReader reader = new StreamReader(file))
            {
                string json = reader.ReadToEnd();
                MatchData match = JsonConvert.DeserializeObject<MatchData>(json);
                reader.Close();

                DataPush push = new DataPush(match);
                push.PushAll();
            }
        }