using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
p.Dealership.Receptionists.Add(new Receptionist(SkillLevel.Low));
p.Dealership.Receptionists.Add(new Receptionist(SkillLevel.Low));
var spc = new SellPlayerCar(p, null);
public class SellPlayerCar
public SellPlayerCar(Player player, Vehicle car)
private static Random _r;
if (_player.Dealership.Receptionists.Count == 0)
int hasCustomerMinThreshold = _r.Next(10);
int hasCustomerInt = _player.Dealership.Receptionists.Count;
hasCustomerInt += (int)_player.Dealership.Receptionists[_r.Next(_player.Dealership.Receptionists.Count)].Skill;
Console.WriteLine("hasCustomerMinThreshold: " + hasCustomerMinThreshold);
Console.WriteLine("hasCustomerInt: " + hasCustomerInt);
hasCustomerInt > hasCustomerMinThreshold;
Console.WriteLine(hasCustomer);
Dealership = new Dealership();
public Dealership Dealership { get; set; }
Receptionists = new List<Receptionist>();
public List<Receptionist> Receptionists { get; set; }
public class Receptionist
public Receptionist(SkillLevel sl)
public SkillLevel Skill { get; set; }