public ArchivedRun() { Character = new Characters(); Items = new List<Items>(); Floors = new List<Floors>(); Bosses = new List<Bosses>(); KilledBy = new Bosses(); }
public Run() { RunCharacter = new Characters(); RunKilledByBoss = new Bosses(); RunItems = new List<Items>(); RunFloors = new List<Floors>(); RunBosses = new List<Bosses>(); }
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); } }
public void AddCharacter(Characters character) { this.RunCharacter = character; }