[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 | begin
|
---|
[213] | 21 | inherited;
|
---|
[236] | 22 | FDataFields := TBlock.Create(Self, nil, 'Base', '', []);
|
---|
[212] | 23 | with FDataFields do
|
---|
| 24 | begin
|
---|
[236] | 25 | AddField(TFileID, 'FileID', '', []);
|
---|
[212] | 26 |
|
---|
[236] | 27 | AddField(TLevelID, 'LevelID', '', []);
|
---|
[212] | 28 |
|
---|
[236] | 29 | AddField(TUnused, 'Unused data', '', [12]);
|
---|
[212] | 30 |
|
---|
[236] | 31 | AddField(TInt, 'Loop speed', '', [2]);
|
---|
| 32 | AddField(TInt, 'Unknown', '', [2]);
|
---|
| 33 | AddField(TInt, 'Unknown', '', [2]);
|
---|
| 34 | AddField(TUnused, 'Unused', '', [2]);
|
---|
[212] | 35 |
|
---|
[236] | 36 | with TArray(AddField(TArray, 'AnimTextures array', '', [4, 0])) do
|
---|
[212] | 37 | begin
|
---|
[236] | 38 | AddField(TLinkByID, 'Texture', '', ['*']);
|
---|
| 39 | SetCount;
|
---|
[212] | 40 | end;
|
---|
| 41 | end;
|
---|
[236] | 42 | FDataFields.Update(0, -1);
|
---|
[233] | 43 | FFileStream.Free;
|
---|
| 44 | FFileStream := nil;
|
---|
[212] | 45 | end;
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | end.
|
---|