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

Last change on this file since 215 was 215, checked in by alloc, 17 years ago
File size: 1.0 KB
RevLine 
[212]1unit TXAN;
2
3interface
4
5uses
6 _FileTypes;
7
8type
9 TFile_TXAN = class(TFile)
[214]10 public
[212]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
[213]23 inherited;
[212]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
[214]46 tempi := 2;
[212]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.