//////////////// internal void PopulateNames() { var dict = new Dictionary <string, ISet <int> >(); for (int i = 1; i < ProjectileLoader.ProjectileCount; i++) { string name = ProjectileIdentityHelpers.GetQualifiedName(i); if (dict.ContainsKey(name)) { dict[name].Add(i); } else { dict[name] = new HashSet <int>() { i }; } } this._NamesToIds = new ReadOnlyDictionaryOfSets <string, int>(dict); }
//// public static string GetQualifiedName( Projectile proj ) { return ProjectileIdentityHelpers.GetQualifiedName( proj.type ); }