[212] | 1 | unit TXAN;
|
---|
| 2 |
|
---|
| 3 | interface
|
---|
| 4 |
|
---|
| 5 | uses
|
---|
| 6 | _FileTypes;
|
---|
| 7 |
|
---|
| 8 | type
|
---|
| 9 | TFile_TXAN = class(TFile)
|
---|
[214] | 10 | public
|
---|
[212] | 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;
|
---|
[233] | 22 | arrargs: TArrayArgs;
|
---|
[212] | 23 | begin
|
---|
[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] | 56 | end;
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | end.
|
---|