public void Load(string name, bool isHome) { // Load the gamefile GameFile file = new GameFile(Path.Combine($"TEAMS\\{name}.txt")); // Load details this.Name = file.ReadLine(); this.City = file.ReadLine(); this.State = file.ReadLine(); // Load texture names this.PlayerTextureName = String.Format("{0}_{1}", name, isHome ? "home" : "away"); this.FieldTextureName = $"{name}_field"; // Load playbooks, roster and depth charts this.Playbooks[OFFENSE] = new Playbook(); this.Playbooks[OFFENSE].Load("Offensive\\" + name); this.Playbooks[DEFENSE] = new Playbook(); this.Playbooks[DEFENSE].Load("Defensive\\" + name); this.Roster = new Roster(); this.Roster.Load(name); this.DepthChart = new DepthChart(); this.DepthChart.Load(name); }
public Team() { this.Playbooks = new Playbook[2]; this.Roster = new Roster(); this.DepthChart = new DepthChart(); }