//////////////// 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 GetProperUniqueId( int projType ) { var proj = new Projectile(); proj.SetDefaults( projType ); return ProjectileIdentityHelpers.GetProperUniqueId( proj ); }
//// public static string GetQualifiedName( Projectile proj ) { return ProjectileIdentityHelpers.GetQualifiedName( proj.type ); }