Esempio n. 1
0
        public static void ServerUnlockGroup(ICharacter character, TechGroup techGroup)
        {
            techGroup.SharedValidateCanUnlock(character);
            var technologies = character.SharedGetTechnologies();

            technologies.ServerRemoveLearningPoints(techGroup.LearningPointsPrice);
            technologies.ServerAddGroup(techGroup);
        }
Esempio n. 2
0
        public static void ServerUnlockGroup(ICharacter character, TechGroup techGroup)
        {
            techGroup.SharedValidateCanUnlock(character, skipLearningPointsCheck: false);
            var technologies = character.SharedGetTechnologies();

            technologies.ServerRemoveLearningPoints(techGroup.LearningPointsPrice);
            technologies.ServerAddGroup(techGroup);
            technologies.IsTechTreeChanged = false;

            foreach (var rootNode in techGroup.RootNodes)
            {
                technologies.ServerAddNode(rootNode);
            }
        }