Example #1
0
        public static void AddEmployee(GameEntity company, GameContext gameContext, int managerTasks, WorkerRole role)
        {
            // Control rating levels for new workers
            var worker = Humans.GenerateHuman(gameContext, role);

            var rating = GetNewWorkerRandomRating(company, gameContext, managerTasks);

            Humans.ResetSkills(worker, (int)rating);

            company.employee.Managers[worker.HumanComponent.Id] = role;
        }