public List <string> _RACES() { List <string> races = new List <string>(); foreach (dsplayer pl in PLAYERS.OrderBy(o => o.REALPOS)) { races.Add(pl.RACE); } return(races); }
public void Init() { MINKILLSUM = _MINKILLSUM(); MAXKILLSUM = _MAXKILLSUM(); MINARMY = _MINARMY(); MININCOME = _MININCOME(); MAXLEAVER = _MAXLEAVER(); PLAYERCOUNT = PLAYERS.Count; FixPos(); PLAYERS = PLAYERS.OrderBy(x => x.REALPOS).ToList(); RACES = _RACES(); }
public string GenHash() { string md5 = ""; string hashstring = ""; foreach (dsplayer pl in PLAYERS.OrderBy(o => o.POS)) { hashstring += pl.POS + pl.RACE; } hashstring += MINARMY + MINKILLSUM + MININCOME + MAXKILLSUM; using (MD5 md5Hash = MD5.Create()) { md5 = GetMd5Hash(md5Hash, hashstring); } HASH = md5; return(md5); }