public static Player GetPlayer(ProfileId position) { var player = CAPGen.GeneratePlayer(position); player.CreatePlayer(); return(player); }
public static Player GetRandomPlayer() { Array values = Enum.GetValues(typeof(ProfileId)); ProfileId curr = (ProfileId)values.GetValue(CAPGen.RAND.Next(0, values.Length)); var player = CAPGen.GeneratePlayer(curr); if (player == null) { return(null); } player.CreatePlayer(); return(player); }