Пример #1
0
 public ArchivedRun()
 {
     Character = new Characters();
     Items = new List<Items>();
     Floors = new List<Floors>();
     Bosses = new List<Bosses>();
     KilledBy = new Bosses();
 }
Пример #2
0
 public Run()
 {
     RunCharacter = new Characters();
     RunKilledByBoss = new Bosses();
     RunItems = new List<Items>();
     RunFloors = new List<Floors>();
     RunBosses = new List<Bosses>();
 }
Пример #3
0
        public static void ParseJsonCharList()
        {
            string json = File.ReadAllText(Environment.CurrentDirectory + @"\resources\JSON\JsonCharList.json");

            dynamic deserializedItems = JsonConvert.DeserializeObject(json);

            foreach (var jsonChar in deserializedItems)
            {
                var character = new Characters();

                character.Id = jsonChar.Name;
                character.Name = jsonChar.First["name"];
                character.Icon = new Bitmap(Environment.CurrentDirectory + @"\resources\images\chars\" + character.Id + ".png");

                Characters.List.Add(character);
            }
        }
Пример #4
0
 public void AddCharacter(Characters character)
 {
     this.RunCharacter = character;
 }