private void ParseCraftTable() { string line = null; int currLevel = 0; using (var reader = new StreamReader(CraftTablePath)) { while ((line = reader.ReadLine()) != null) { if (line.Length > 0) { if (line[0] == '/' && line[1] == '/') { continue; } else if (line[0] == '-' && line[1] == '-') { currLevel++; continue; } else { var ret = ParseLine(line); if (currLevel <= CraftTableCards.Count) { CraftTableCards.Add(new List <string>()); } CraftTableCards[currLevel].Add(ret.Item1); } } } } }
private void Clear() { TranslateToEn.Clear(); TranslateToCh.Clear(); CraftTableCards.Clear(); CardList.Clear(); }