Beispiel #1
0
 // Token: 0x06001985 RID: 6533 RVA: 0x000906E8 File Offset: 0x0008EAE8
 public ContentFile(RootContentDirectory newRootDirectory, ContentDirectory newDirectory, string newPath, string newFile)
 {
     this.rootDirectory = newRootDirectory;
     this.directory     = newDirectory;
     this.path          = newPath;
     this.file          = newFile;
     this.name          = Path.GetFileNameWithoutExtension(this.file);
     this.guessedType   = ContentTypeGuesserRegistry.guess(Path.GetExtension(this.file));
 }
Beispiel #2
0
 // Token: 0x060019A8 RID: 6568 RVA: 0x000909A8 File Offset: 0x0008EDA8
 static ContentTypeGuesserRegistry()
 {
     ContentTypeGuesserRegistry.add(".jpg", typeof(Texture2D));
     ContentTypeGuesserRegistry.add(".png", typeof(Texture2D));
     ContentTypeGuesserRegistry.add(".tga", typeof(Texture2D));
     ContentTypeGuesserRegistry.add(".psd", typeof(Texture2D));
     ContentTypeGuesserRegistry.add(".blend", typeof(Mesh));
     ContentTypeGuesserRegistry.add(".fbx", typeof(Mesh));
     ContentTypeGuesserRegistry.add(".mat", typeof(Material));
     ContentTypeGuesserRegistry.add(".prefab", typeof(GameObject));
     ContentTypeGuesserRegistry.add(".mp3", typeof(AudioClip));
     ContentTypeGuesserRegistry.add(".ogg", typeof(AudioClip));
     ContentTypeGuesserRegistry.add(".wav", typeof(AudioClip));
 }