コード例 #1
0
        /// <summary>
        /// Changes the max revenue for this user
        /// </summary>
        /// <param name="_newMaxRevenue"></param>
        public void ChangeMaxRevenue(float _newMaxRevenue)
        {
            // set the new value
            MaxRevenue = _newMaxRevenue;

            // recalculate the shifts
            ShiftScheduler.Calculate();
        }
コード例 #2
0
        /// <summary>
        /// Changes the Salary of the User
        /// </summary>
        /// <param name="_newSalaryType"></param>
        public void ChangeSalaryType(SalaryType _newSalaryType)
        {
            // set the new value
            SalaryType = _newSalaryType;

            // recalculate the shifts
            ShiftScheduler.Calculate();
        }