コード例 #1
0
        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);
            }
        }
コード例 #2
0
        static void Main(string[] args)
        {
            DemographicModel.Init();
            Dashboard.ImportEntryObjects(typeof(DemographicModel));

            var flag = ParseAndExecute("show");

            while (flag)
            {
                flag = ParseAndExecute(Console.ReadLine());
            }
        }
コード例 #3
0
 public static void Init()
 {
     Model = new DemographicModel();
 }
コード例 #4
0
 public bool IsWillingToMarry() => DemographicModel.GetRandom(_Prob_Marry);