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 | arrargs: TArrayArgs;
|
---|
23 | begin
|
---|
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;
|
---|
56 | end;
|
---|
57 |
|
---|
58 |
|
---|
59 | end.
|
---|