public static Dictionary <int, string> GetExtensions() { var extensionsByName = new Dictionary <string, string>() { { "AssetBank", "asset_bank" }, { "AtlasTexture", "atlas_texture" }, { "EAClothAssetData", "ea_cloth_asset" }, { "EAClothEntityData", "ea_cloth_entity" }, { "EnlightenDatabase", "enlighten_db" }, { "EnlightenShaderDatabase", "enlighten_shader_db" }, { "FaceFXResource", "facefx" }, { "havokphysicsdata", "havok_physics" }, { "IesResource", "ies" }, { "IShaderDatabase", "shader_db" }, { "LocalizedStringResource", "locstr" }, { "MeshAdjacencyResource", "mesh_adjacency" }, { "MeshSet", "mesh_set" }, { "MorphTargetsResource", "morph_targets" }, { "OccluderMesh", "occluder_mesh" }, { "PcaComponentWeightsResource", "pca_component_weights" }, { "RenderTexture", "render_texture" }, { "texture", "texture" }, }; var extensionsById = extensionsByName.ToDictionary( kv => (int)DJB.Compute(kv.Key.ToLowerInvariant()), kv => kv.Value); return(extensionsById); }
static ResourceTypes() { Texture = DJB.Compute("texture"); }