static void Main(string[] args) { #if !LCG_UI DemographicModel.Init(); Dashboard.ImportEntryObjects(typeof(DemographicModel)); #else ResourceManager.Misc.SolutionPath = $"{Directory.GetCurrentDirectory()}/../../../.."; InitializationManager.InitializeAll(); Dashboard.ImportEntryObjects(typeof(ResourceManager)); #endif Program world = new Program(); world.execute("show"); while (true) { var me = Console.ReadLine(); /* Switch on the power line * Remember to put on * PROTECTION * Lay down your pieces * And let's begin * OBJECT CREATION * Fill in my data parameters * INITIALIZATION * Set up our new world * And let's begin the * SIMULATION */ world.execute(me); } }
static void Main(string[] args) { DemographicModel.Init(); Dashboard.ImportEntryObjects(typeof(DemographicModel)); var flag = ParseAndExecute("show"); while (flag) { flag = ParseAndExecute(Console.ReadLine()); } }
public static void Init() { Model = new DemographicModel(); }
public bool IsWillingToMarry() => DemographicModel.GetRandom(_Prob_Marry);