public Player(string[] lines, int i) { while (lines[i] != "#") { if (lines[i] == "Position") { Position = tmp.GetRectFromLine(lines[++i]); } if (lines[i] == "Repeatability") { FillOffset(lines[++i]); } if (lines[i] == "Name") { Name = new TextInImg(lines, ++i); } if (lines[i] == "AorK") { AorK = new TextInImg(lines, ++i); } if (lines[i] == "Number") { Number = new TextInImg(lines, ++i); } ++i; } }
private int FillImages(string[] lines, int i) { TextInImg tmp = new TextInImg(); while (lines[i] != "*") { if (lines[i] == "Logo1") { HomeLogo = tmp.GetRectFromLine(lines[++i]); } if (lines[i] == "Logo2") { EnemyLogo = tmp.GetRectFromLine(lines[++i]); } if (lines[i] == "Tournament") { TournamentLogo = tmp.GetRectFromLine(lines[++i]); } if (lines[i] == "Best") { BestPlayerImage = tmp.GetRectFromLine(lines[++i]); } ++i; } return(i); }
private int FillTexts(string[] lines, int i) { while (lines[i] != "+") { if (lines[i] == "Description") { Description = new TextInImg(lines, ++i); } if (lines[i] == "Date") { Date = new TextInImg(lines, ++i); } ++i; } return(i); }
private int FillTexts(string[] lines, int i) { while (i < lines.Length) { if (lines[i] == "Team1") { Team1 = new TextInImg(lines, ++i); } if (lines[i] == "Team2") { Team2 = new TextInImg(lines, ++i); } if (lines[i] == "Place") { Place = new TextInImg(lines, ++i); } if (lines[i] == "Date") { Date = new TextInImg(lines, ++i); } if (lines[i] == "Score") { Score = new TextInImg(lines, ++i); } if (lines[i] == "Stat") { Stat = new TextInImg(lines, ++i); } if (lines[i] == "NextGame") { NextGameOrLogo = new TextInImg(lines, ++i); } if (lines[i] == "Pucks") { Pucks = new TextInImg(lines, ++i); } if (lines[i] == "Best") { Best = new TextInImg(lines, ++i); } if (lines[i] == "Viewers") { Viewers = new TextInImg(lines, ++i); } if (lines[i] == "OverPenalty") { OverPenalty = new TextInImg(lines, ++i); } ++i; } return(i); }