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); }
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); }