Beispiel #1
0
        public static void AttachToCompany(GameEntity company, GameContext gameContext, HumanFF worker, WorkerRole role, int teamId)
        {
            // add humanId to team
            AttachHumanToTeam(company, gameContext, worker, role, teamId);

            // add companyId to human
            Humans.AttachToCompany(worker, company.company.Id, role);
        }
Beispiel #2
0
        public static void AttachToTeam(GameEntity company, GameEntity worker, WorkerRole role)
        {
            // add humanId to team
            var team = company.team;

            var humanId = worker.human.Id;

            team.Managers[humanId] = role;

            ReplaceTeam(company, team);

            // add companyId to human
            Humans.AttachToCompany(worker, company.company.Id, role);
        }