source: oup/rewrite/Global/TypeDefs.pas@ 99

Last change on this file since 99 was 97, checked in by alloc, 18 years ago
File size: 1.6 KB
Line 
1unit TypeDefs;
2interface
3
4uses
5 Graphics, SysUtils;
6
7type
8 ENotImplemented = class(Exception);
9
10 TDataBackend = (DB_ONI, DB_ADB);
11 TDataOS = (DOS_WIN, DOS_MAC);
12
13 TChangeRights = set of (CR_EditDat, CR_EditRaw, CR_ResizeDat, CR_ResizeRaw);
14
15 TStatusMessages = (
16 SM_OK,
17 SM_AlreadyOpened,
18 SM_FileNotFound,
19 SM_UnknownExtension,
20 SM_IncompatibleFile,
21 SM_UnknownError
22 );
23
24 TFileInfo = packed record
25 ID: Integer;
26 Name: String;
27 Extension: String[4];
28 Size: Integer;
29 FileType: LongWord;
30 DatAddr: Integer;
31 end;
32
33 TRawDataInfo = record
34 SrcID: Integer;
35 SrcOffset: Integer;
36 RawAddr: Integer;
37 RawSize: Integer;
38 LocSep: Boolean;
39 end;
40 TRawDataList = array of TRawDataInfo;
41
42 TSortType = (
43 ST_IDAsc,
44 ST_IDDesc,
45 ST_NameAsc,
46 ST_NameDesc,
47 ST_ExtAsc,
48 ST_ExtDesc
49 );
50
51 TExtensionFormat = (
52 EF_ExtOnly,
53 EF_ExtCount
54 );
55
56 TByteData = array of Byte;
57
58 TAppSettings = record
59 DatPath: String[250];
60 ExtractPath: String[250];
61 FilenumbersAsHex: Boolean;
62 CharSet: TFontCharSet;
63 HideUnusedData: Boolean;
64 end;
65
66 TToolList = array of record
67 context: String;
68 name: String;
69 exts: String;
70 end;
71
72{
73 TLevelInfo = record
74 Ident: array[0..$13] of Byte;
75 LevelNumber: Byte;
76 end;
77
78 TDatLinks = array of record
79 Src_Offset: LongWord;
80 Target: LongWord;
81 end;
82}
83
84const
85 CrLf: String[2] = #13#10;
86
87implementation
88
89end.
Note: See TracBrowser for help on using the repository browser.