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

Last change on this file since 233 was 233, checked in by alloc, 17 years ago
File size: 1.1 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;
[233]22 arrargs: TArrayArgs;
[212]23begin
[213]24 inherited;
[212]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
[233]47 arrargs.CounterSize := 2;
48 arrargs.BlockLength := 4;
49 with AddField(TArray, $1C, 'AnimTextures array', '', @arrargs) do
[212]50 begin
51 AddField(TLinkByID, $00, 'Texture', '', nil);
52 end;
53 end;
[233]54 FFileStream.Free;
55 FFileStream := nil;
[212]56end;
57
58
59end.
Note: See TracBrowser for help on using the repository browser.