source: oup/current/FileClasses/TXMP.pas@ 229

Last change on this file since 229 was 215, checked in by alloc, 17 years ago
File size: 2.6 KB
RevLine 
[206]1unit TXMP;
2
3interface
4
5uses
[209]6 _FileTypes;
[206]7
8type
9 TFile_TXMP = class(TFile)
[214]10 public
[206]11 procedure InitDataFields; override;
12 end;
13
14implementation
15
16uses
[209]17 ConnectionManager, Math, Classes, TypeDefs, _DataTypes;
[206]18
[209]19{ TFile_TXMP }
[206]20
21procedure TFile_TXMP.InitDataFields;
22var
23 tempi: Integer;
24 temps: String;
[207]25 templist: TStringList;
[206]26begin
[213]27 inherited;
[212]28 FDataFields := TBlock.Create(Self, nil, 0, 'Base', '', nil);
[207]29 templist := TStringList.Create;
[206]30 with FDataFields do
31 begin
32 AddField(TFileID, $00, 'FileID', '', nil);
[207]33
[206]34 AddField(TLevelID, $04, 'LevelID', '', nil);
[207]35
[206]36 tempi := 128;
37 AddField(TString, $08, 'FileName', '', @tempi);
[207]38
39 templist.Add('MipMapping enabled');
40 templist.Add('unknown');
41 templist.Add('U wrapping disabled');
42 templist.Add('V wrapping disabled');
43 templist.Add('EnvMapped/EnvMap');
44 templist.Add('unused');
45 templist.Add('Play anim back to back');
46 templist.Add('Random anim order + frame time');
47 AddField(TBitSet, $88, 'Flags1', '', @templist);
48
49 templist.Clear;
50 templist.Add('Random anim time offset');
51 templist.Add('High byte as EnvMap');
52 templist.Add('High byte as alpha');
53 templist.Add('Different alpha formula');
54 templist.Add('Data swapping (always set)');
55 templist.Add('used at runtime');
56 templist.Add('TXAN looping on/off');
57 templist.Add('16 bit blue');
58 AddField(TBitSet, $89, 'Flags2', '', @templist);
59
60 templist.Clear;
61 templist.Add('16 bit alpha');
62 templist.Add('16 bit red');
63 templist.Add('unknown');
64 templist.Add('unknown');
65 templist.Add('unknown');
66 templist.Add('unknown');
67 templist.Add('unknown');
68 templist.Add('unknown');
69 AddField(TBitSet, $8A, 'Flags3', '', @templist);
70
71 templist.Clear;
72 templist.Add('unknown');
73 templist.Add('unknown');
74 templist.Add('unknown');
75 templist.Add('unknown');
76 templist.Add('unknown');
77 templist.Add('unknown');
78 templist.Add('unknown');
79 templist.Add('unknown');
80 AddField(TBitSet, $8B, 'Flags4', '', @templist);
81
[206]82 tempi := 2;
83 AddField(TInt, $8C, 'Width', '', @tempi);
[207]84
[206]85 tempi := 2;
86 AddField(TInt, $8E, 'Height', '', @tempi);
[207]87
[206]88 tempi := 4;
89 AddField(TInt, $90, 'StoreType', '', @tempi);
[207]90
91 temps := '*';
[206]92 AddField(TLinkByID, $94, 'TXAN', '', @temps);
[207]93
[206]94 temps := 'TXMP';
95 AddField(TLinkByID, $98, 'TXMP', '', @temps);
[207]96
[206]97 AddField(TRawLink, $9C, 'RawLink', '', nil);
[207]98
[206]99 AddField(TRawLink, $A0, 'SepLink', '', nil);
[207]100
[206]101 tempi := $1C;
102 AddField(TUnused, $A4, 'Unused', '', @tempi);
103 end;
[207]104 templist.Free;
[206]105end;
106
107
108end.
109
Note: See TracBrowser for help on using the repository browser.