comparison FileFormats.cs @ 0:82db9430c2e4 default tip

Initial commit under GPLv3
author IBBoard <dev@ibboard.co.uk>
date Sat, 06 Oct 2018 19:49:25 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:82db9430c2e4
1 // This file is a part of the Relic Tools and is copyright 2006-2018 IBBoard.
2 //
3 // The file and the library/program it is in are licensed under the GNU GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
4 using System;
5
6 namespace IBBoard.Relic.RelicTools
7 {
8 /// <summary>
9 /// Summary description for FileFormats.
10 /// </summary>
11 public class FileFormats
12 {
13 public enum ImgType {DXT1DDS, DXT3DDS, DXT5DDS, TGA, Unknown}
14
15 public static string FormatAsString(string extension)
16 {
17 switch(extension)
18 {
19 //http://www.relic.com/rdn/wiki/DOWFileFormats&v=17ol
20 case "rtx": return "Relic TeXture";
21 case "rsh": return "Relic SHader";
22 case "wtp": return "Team Coloured Texture";
23 case "ai": return "Artificial Intelligence";
24 case "scar": return "SCripting At Relic";
25 case "rgd": return "Compiled game data";
26 case "lua": return "Generic game data";
27 case "nil": return "Inheritance game data";
28 case "tga": return "Targa Image";
29 case "dds": return "DirectDraw Surface";
30 case "screen": return "Screen layout";
31 case "nis": return "Non-Interactive Sequence";
32 case "rat": return "Relic Audio Tool";
33 case "sgb": return "Game map";
34 case "camp": return "Campaign file";
35 case "turn": return "Turning behaviour";
36 case "events": return "Game Event";
37 case "fda": return "Fast Digital Audio";
38 case "con": return "Fake file";
39 case "teamcolour": return "Team colour";
40 case "whm": return "Game model";
41 case "whe": return "Game model animations";
42 case "bmp": return "Bitmap image";
43 case "jpg": return "JPEG image";
44 case "jpeg": return "JPEG image";
45 case "sgm": return "OE-ready model";
46 case "colours": return "Named colour list";
47 case "styles": return "Style sheet";
48 case "fnt": return "Font file";
49 case "ttf": return "True Type Font";
50 case "txt": return "Plain text";
51 default: return "Unknown";
52 }
53 }
54 }
55 }