1 | unit TXAN;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | _FileTypes;
|
---|
7 |
|
---|
8 | type
|
---|
9 | TFile_TXAN = class(TFile)
|
---|
10 | public
|
---|
11 | procedure InitDataFields; override;
|
---|
12 | end;
|
---|
13 |
|
---|
14 | implementation
|
---|
15 |
|
---|
16 | uses
|
---|
17 | ConnectionManager, Math, Classes, TypeDefs, _DataTypes;
|
---|
18 |
|
---|
19 | procedure TFile_TXAN.InitDataFields;
|
---|
20 | var
|
---|
21 | tempi: Integer;
|
---|
22 | begin
|
---|
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;
|
---|
52 | end;
|
---|
53 |
|
---|
54 |
|
---|
55 | end.
|
---|
56 |
|
---|