Example #1
0
        private void SimulateButton_Click(object sender, EventArgs e)
        {
            _customerConfig.OrderSizes.Clear();
            _customerConfig.OrderSizes.AddRange(orderSizes.Text.Split(new [] { ";" }, StringSplitOptions.RemoveEmptyEntries).Select(Convert.ToDecimal));
            _customerConfig.CreateBuysOrSells = buys.Checked ? BuySell.Buy : BuySell.Sell;

            _simulationScenario.Customers.Clear();
            _simulationScenario.Customers.AddRange(_customerGenerator.CreateCustomers(_customerConfig));

            new ProfitSimulation(new[] { _simulationScenario }).ExecuteSimulation(null);
        }
Example #2
0
        public override void OnStateEnter()
        {
            // set the Container data and the Company Data
            cloud.SetDatas();
            spawnController.InitialSpawnWave();
            runTimeStateController.CurrentState = RunTimeState.PLAYING;

            //important data send on
            customerGenerator.Init(signalBus, cloud, spawnController, monoBehaviour);


            inputController.SetCameraController();
            inputController.showBuildingDataEvent += PlayerViewController.playerViewController.FocusedBuilding;

            customerGenerator.CreateCustomers();

            monoBehaviour.StartCoroutine(customerGenerator.CreateNewCostumer());
            //Debug.Log($"Current State {this}");
        }