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

Last change on this file since 234 was 234, checked in by alloc, 17 years ago
File size: 1.1 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;
22 arrargs: TArrayArgs;
23begin
24 inherited;
25 FDataFields := TBlock.Create(Self, nil, 0, 'Base', '', nil);
26 with FDataFields do
27 begin
28 AddField(TFileID, $00, 'FileID', '', nil);
29
30 AddField(TLevelID, $04, 'LevelID', '', nil);
31
32 tempi := 12;
33 AddField(TUnused, $08, 'Unused data', '', @tempi);
34
35 tempi := 2;
36 AddField(TInt, $14, 'Loop speed', '', @tempi);
37
38 tempi := 2;
39 AddField(TInt, $16, 'Unknown', '', @tempi);
40
41 tempi := 2;
42 AddField(TInt, $18, 'Unknown', '', @tempi);
43
44 tempi := 2;
45 AddField(TUnused, $1A, 'Unused', '', @tempi);
46
47 arrargs.CounterSize := 2;
48 arrargs.BlockLength := 4;
49 with TArray(AddField(TArray, $1C, 'AnimTextures array', '', @arrargs)) do
50 begin
51 AddField(TLinkByID, $00, 'Texture', '', nil);
52 end;
53 end;
54 FFileStream.Free;
55 FFileStream := nil;
56end;
57
58
59end.
Note: See TracBrowser for help on using the repository browser.