source: oup/current/FileClasses/TXAN.pas@ 222

Last change on this file since 222 was 215, checked in by alloc, 17 years ago
File size: 1.0 KB
Line 
1unit TXAN;
2
3interface
4
5uses
6 _FileTypes;
7
8type
9 TFile_TXAN = class(TFile)
10 public
11 procedure InitDataFields; override;
12 end;
13
14implementation
15
16uses
17 ConnectionManager, Math, Classes, TypeDefs, _DataTypes;
18
19procedure TFile_TXAN.InitDataFields;
20var
21 tempi: Integer;
22begin
23 inherited;
24 FDataFields := TBlock.Create(Self, nil, 0, 'Base', '', nil);
25 with FDataFields do
26 begin
27 AddField(TFileID, $00, 'FileID', '', nil);
28
29 AddField(TLevelID, $04, 'LevelID', '', nil);
30
31 tempi := 12;
32 AddField(TUnused, $08, 'Unused data', '', @tempi);
33
34 tempi := 2;
35 AddField(TInt, $14, 'Loop speed', '', @tempi);
36
37 tempi := 2;
38 AddField(TInt, $16, 'Unknown', '', @tempi);
39
40 tempi := 2;
41 AddField(TInt, $18, 'Unknown', '', @tempi);
42
43 tempi := 2;
44 AddField(TUnused, $1A, 'Unused', '', @tempi);
45
46 tempi := 2;
47 with AddField(TArray, $1C, 'AnimTextures array', '', @tempi) do
48 begin
49 AddField(TLinkByID, $00, 'Texture', '', nil);
50 end;
51 end;
52end;
53
54
55end.
56
Note: See TracBrowser for help on using the repository browser.