Пример #1
0
        public Champion(RelationToken relationToken, IEnumerable <RelationToken> enemiesRelationTokens, IChampionInitializator initializator) : base(Vector3.Zero)
        {
            RelationManager = new DefaultRelationManager(relationToken, enemiesRelationTokens);
            var enumerable = initializator.GetProperties(this);
            var dictionary = enumerable.ToDictionary(p => p.Type);

            properties = dictionary;
            skills     = initializator.GetSkills(this).ToDictionary(s => s.Factory);
        }
Пример #2
0
 public Champion(RelationToken relationToken, IEnumerable<RelationToken> enemiesRelationTokens, IChampionInitializator initializator ) : base(Vector3.Zero)
 {
     RelationManager = new DefaultRelationManager(relationToken, enemiesRelationTokens);
     var enumerable = initializator.GetProperties(this);
     var dictionary = enumerable.ToDictionary(p => p.Type);
     properties = dictionary;
     skills = initializator.GetSkills(this).ToDictionary(s => s.Factory);
 }